use ThemePlate\Enforcer;
$enforcer = new Enforcer();
$enforcer->register( 'local', 'query-monitor/query-monitor.php' );
$enforcer->register( 'production', 'wordfence/wordfence.php' );
// or register all in one go
$plugins = array(
'local' => array(
'query-monitor/query-monitor.php',
),
'production' => array(
'wordfence/wordfence.php',
),
);
$enforcer->load( $plugins );
// set up the hooks
add_action( 'init', array( $enforcer, 'init' ) );
-
Notifications
You must be signed in to change notification settings - Fork 0
Simple enforcer of plugins per environment type
License
ThemePlate/Enforcer
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Simple enforcer of plugins per environment type
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published