You appear to be a bot. Output may be restricted
Description
Load 'plugin' file if the options checkbox is set onThe file extension of the plugin is ".php" This function implements a simple "load module" until such a time as either a) modules are implemented, b) the logic is replaced with library logic
Usage
bw_load_plugin( $set, $option, $plugin );
Parameters
- $set
- ( string ) optional default: bw_buttons – the option set
- $option
- ( string ) optional default: oik-button-shortcodes – the option within the set
- $plugin
- ( string ) optional – null for the default file extension
Returns
voidSource
File name: oik/libs/oik-admin.phpLines:
1 to 11 of 11
function bw_load_plugin( $set="bw_buttons", $option="oik-button-shortcodes", $plugin=NULL ) { $checkbox = bobbcomp::bw_get_option( $option, $set ); bw_trace2( $checkbox, "checkbox", true, BW_TRACE_DEBUG ); if ( $checkbox == "on" ) { if ( $plugin == NULL ) { $plugin = $option.".php" ; } bw_trace2( $plugin, "plugin", false, BW_TRACE_DEBUG ); oik_require( $plugin ); } }View on GitHub View on Trac