You appear to be a bot. Output may be restricted
Description
Add a selected trace action
Usage
bw_trace_add_action( $action, $option, $file, $function, $count );
Parameters
- $action
- ( string ) required – the action hook e.g. 'wp'
- $option
- ( string ) required – the option name e.g. 'trace_wp_rewrite'
- $file
- ( string ) required – the implementing file e.g. 'includes/oik-actions.php'
- $function
- ( string ) required – the implementing function e.g. 'bw_trace_wp_rewrite'
- $count
- ( integer ) optional default: 1 – expected parameter count
Returns
voidSource
File name: oik-bwtrace/includes/bwtrace-actions.phpLines:
1 to 17 of 17
function bw_trace_add_action( $action, $option, $file, $function, $count=1 ) { bw_trace2( null, null, true, BW_TRACE_DEBUG ); global $bw_action_options; $bw_trace_action = bw_array_get( $bw_action_options, $option, false ); if ( $bw_trace_action ) { if ( !function_exists( $function ) ) { oik_require( $file, "oik-bwtrace" ); } if ( function_exists( $function ) ) { add_action( $action, $function, 10, $count ); } else { bw_trace2( $function, "Function does not exist", true, BW_TRACE_ERROR ); } } return( $bw_trace_action ); }View on GitHub View on Trac