You appear to be a bot. Output may be restricted
Description
Add a hook function association.This records the fact that the current function is naming a function to implement a particular hook
Usage
oikai_record_association( $hook, $func );
Parameters
- $hook
- ( ID ) required – the post_id of the hook
- $func
- ( ID ) required – the post_id of the API – this may be null if the API is not yet defined
Returns
voidSource
File name: oik-shortcodes/admin/oik-apis.phpLines:
1 to 12 of 12
function oikai_record_association( $hook, $func ) { global $oikai_association; if ( $func ) { if ( !isset( $oikai_association ) ) { $oikai_association = array(); } $oikai_association[] = "$hook,$func"; } else { bw_trace2( $oikai_association, "oikai_association", true, BW_TRACE_VERBOSE ); //bw_backtrace(); } }View on GitHub