You appear to be a bot. Output may be restricted
Description
Add a hook invocation.This records the fact that a hook has been invoked by the function being parsed.
Usage
oikai_record_hook( $method, $hook, $post_id );
Parameters
- $method
- ( string ) required – the invocation method: do_action, do_action_ref_array, apply_filters, apply_filters_ref_array
- $hook
- ( string ) required – the hook name e.g. "oikai_record_hook"
- $post_id
- ( ID ) required – the post_id of the hook
Returns
voidSource
File name: oik-shortcodes/admin/oik-apis.phpLines:
1 to 8 of 8
function oikai_record_hook( $method, $hook, $post_id ) { global $oikai_hook; if ( !isset( $oikai_hook ) ) { $oikai_hook = array(); } $oikai_hook[] = array( $method, $hook, $post_id ); bw_trace2( $oikai_hook, "oikai_hook", true, BW_TRACE_VERBOSE ); }View on GitHub