You appear to be a bot. Output may be restricted
Description
Load a plugin's file and report how many files were loaded and how many new functions were definedThis function may not be successful if the plugin does not load its own pre-requisite files. See oik_load_wordpress_prerequisites() for the current minimum set.
Usage
oik_load_loaded( $argc, $argv );
Parameters
- $argc
- ( mixed ) required –
- $argv
- ( mixed ) required –
Returns
voidSource
File name: oik-batch/oik-load.phpLines:
1 to 28 of 28
function oik_load_loaded( $argc, $argv ) { $plugin_file = bw_array_get( $argv, 1, "oik/oik.php" ); oik_batch_trace( false ); timer_start(); oik_require( "bobbfunc.inc" ); //oik_require( "shortcodes/oik-api-status.php", "oik-shortcodes" ); oikai_api_status( false, "oik-batch" ); bw_flush(); oik_load_wordpress_prerequisites(); oikai_api_status( true, "WordPress subset" ); bw_flush(); $plugin_files = bw_as_array( $plugin_file ); foreach ( $plugin_files as $plugin_file ) { $plugin_file = bw_full_file( $plugin_file ); //timer_start(); $rc = include( $plugin_file ); $elapsed = timer_stop( false, 6 ); //h3( "$plugin_file:$rc" ); //p( "Load time (secs): $elapsed " ); oikai_api_status( false, $plugin_file ); bw_flush(); } }View on GitHub