You appear to be a bot. Output may be restricted
Description
Update hook associations defined by this APIThe $oikai_association and $oikai_hook arrays are metadata related to the current API ( identified by $post_id ) Each time the API is parsed to update the API information these arrays are converted into metadata:
- _oik_api_hooks – lists the hooks that are invoked by the API. @see oiksc_save_hooks()
- _oik_api_associations – lists the associations that this function makes between hooks and their implementing functions.
- _oik_hook_calls – lists the APIs that respond to this action/filter hook ie. the Implementers
Usage
oiksc_save_associations( $post_id );
Parameters
- $post_id
- ( mixed ) required –
Returns
voidSource
File name: oik-shortcodes/admin/oik-apis.phpLines:
1 to 11 of 11
function oiksc_save_associations( $post_id ) { global $oikai_association; bw_trace2( $oikai_association, "associations", true, BW_TRACE_VERBOSE ); $prev_associations = get_post_meta( $post_id, "_oik_api_associations", false ); bw_trace2( $prev_associations, "previous associations", false, BW_TRACE_VERBOSE ); oiksc_handle_association_differences( $prev_associations, $oikai_association, true ); bw_update_post_meta( $post_id, "_oik_api_associations", $oikai_association ); }View on GitHub