WP Manifestindependent plugin directory
manifest / developer / wp-isolation

WP Isolation

Proof of concept code to isolate specific post types to their own sandboxed DB tables

by Greg Schoppe · github.com/gschoppe/wp-isolation · website

5stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/gschoppe/wp-isolation/archive/refs/heads/master.zip

From the readme

WP Isolation by Greg Schoppe PROOF OF CONCEPT - USE AT YOUR OWN RISK Isolate one or more WordPress post types to a set of dedicated database tables (a sandbox, if you will), with their own separate set of IDs. Why? Maybe just to punish myself. You tell me. Usage Setup: Install and activate the plugin, then after your post types and taxonomies are declared, call WP Isolate like this: Where sandboxname is an optional slug to identify the sandboxed tables. If you omit 'sandboxname', your sandbox will automatically be assigned a name. the WPIsolate::Init() function is shorthand for: Shortcode: You may need to run a shortcode that references posts from another sandbox. to do so, simply wrap that shortcode in a [sandbox] shortcode, like so: The optional name attribute lets you select a specific sandbox. without that attribute, the shortcode defaults to returning to the main sandbox from whatever sandbox is currently running. Helper Functions: These helpers are a set of two functions that can surround a set of operations, forcing them to take place in the context of a specific sandbox, similar to how the shortcode wraps content. Unsupported Multisites Theoretically, there i

Read the full README on GitHub →