Description
Self load the plugin's main .php file
Usage
_manually_load_plugin();Parameters
Returns
voidTO DO
Load the plugin's main .php file At this point Must Use plugins have been loaded. We don't expect other plugins to be loaded, since there are none defined in active_plugins array so we do it ourselves.Source
File name: oik-batch/tests/bootstrap.phpLines:
1 to 15 of 15
function _manually_load_plugin() { $active_plugins = (array) get_option( 'active_plugins', array() ); bw_trace2( $active_plugins, "active_plugins", true ); bw_backtrace(); $included_files = get_included_files(); bw_trace2( $included_files, "included_files", false ); oik_require( "oik.php" ); echo "oik loaded" . PHP_EOL; // Logic from WP-cli generated bootstrap // require dirname( dirname( __FILE__ ) ) . '/my-plugin.php'; //require_once( "../../ }View on GitHub
Called by
Invoked by
Calls
1 to 2 of 2
