Description
Handle a link to a "user" function
Usage
oikai_handle_reference_type_user( $api, $reference_type );Parameters
- $api
- ( mixed ) required –
- $reference_type
- ( mixed ) required –
Returns
voidSource
File name: oik-shortcodes/shortcodes/oik-api.phpLines:
1 to 10 of 10
function oikai_handle_reference_type_user( $api, $reference_type ) { $posts = oikai_get_oik_apis_byname( $api ); bw_trace2( $posts ); if ( $posts ) { oikapi_simple_link( $api, $posts ); } else { e( oikai_link_to_wordpress( $api ) ); } e( "()" ); }View on GitHub
Invoked by
Calls
1 to 4 of 4
- bw_trace2() – Trace $value to the trace log file if tracing is active
- oikai_get_oik_apis_byname() – Load the APIs listed in the array
- oikai_link_to_wordpress() – Create a link to WordPress documentation
- oikapi_simple_link() – OK, but we also want to link to PHP stuff So we need to be able to call that function
