Description
List the callers and callees for the selected oik_api including information about hooksSections displayed:
- Called by – the callers of this API
- Invoked by – the hooks which cause this function to be invoked
- Calls – the functions this API calls
- Call hooks – the action and filters this API invokes
Usage
oikai_list_callers_callees( $post_id );Parameters
- $post_id
- ( ID ) required – the ID of the oik_api
Returns
voidSource
File name: oik-shortcodes/shortcodes/oik-apilink.phpLines:
1 to 21 of 21
function oikai_list_callers_callees( $post_id ) { $api_name = get_post_meta( $post_id, "_oik_api_name", true ); bw_trace2( $api_name, "API name" ); sdiv( "bw_callers" ); h3( "Called by", "bw_callers" ); oikai_list_callers( $post_id, $api_name ); ediv(); sdiv( "bw_invokers" ); h3( "Invoked by", "bw_invokers" ); oikai_list_invokers( $post_id, $api_name ); ediv(); sdiv( "bw_callees" ); h3( "Calls", "bw_callees" ); oikai_list_callees( $post_id ); ediv(); sdiv( "bw_invokes" ); h3( "Call hooks", "bw_invokes" ); oikai_list_hooks( $post_id ); ediv(); }View on GitHub
Called by
1 to 2 of 2
Invoked by
Calls
1 to 8 of 8
- bw_trace2() – Trace $value to the trace log file if tracing is active
- ediv() – End a div
- h3() –
- oikai_list_callees() – List callees of the selected API
- oikai_list_callers() – List callers of the selected API
- oikai_list_hooks() – List hooks invoked by the selected API
- oikai_list_invokers() – List invokers of the selected API
- sdiv() – Start a div
