You appear to be a bot. Output may be restricted
Description
Simple implementation of plugin dependency logic
Usage
oik_depends( $plugin, $dependencies, $callback );
Parameters
- $plugin
- ( string ) optional – the plugin file name
- $dependencies
- ( string ) optional default: oik – the list of plugins upon which this plugin is dependent
- $callback
- ( string ) optional – the callback function to invoke when the dependencies aren't satisfied Instead of calling this module during activation we invoke it in response to the after_plugin_row_$plugin_basename action. This gives us a bit more control over the information we provide. IF the oik plugin is not activated then oik_lazy_depends() will not be defined
Returns
voidSource
File name: oik-user/admin/oik-activation.phpLines:
1 to 13 of 13
function oik_depends( $plugin=null, $dependencies="oik", $callback=null ) { //bw_trace2(); //if ( function_exists( "oik_load_plugins" )) { // oik_load_plugins(); //} if ( function_exists( "oik_lazy_depends" ) ) { oik_lazy_depends( $plugin, $dependencies, $callback ); } else { if ( is_callable( $callback ) ) { call_user_func( $callback, $plugin, $dependencies, "missing" ); } } }View on GitHub