You appear to be a bot. Output may be restricted
Description
Create an "oik_hook" post_type
Usage
$ID = _oikai_create_oik_hook( $hook, $context );
Parameters
- $hook
- ( string ) required – the hook name – which may contain variables
- $context
- ( string ) required – the function in which we first found out about this hook
Returns
ID
Source
File name: oik-shortcodes/shortcodes/oik-api-importer.php
Lines:
1 to 17 of 17
function _oikai_create_oik_hook( $hook, $context ) { // p( "Creating hook $hook" ); oik_require( "admin/oik-shortcodes.php", "oik-shortcodes" ); $post = oiksc_get_oik_hook_byname( $hook ); //bw_trace2( $post, "post" ); if ( !$post ) { $post_id = oiksc_create_oik_hook( $hook, $context ); } else { $post_id = $post->ID; oiksc_update_oik_hook( $post, $hook, $context ); } //oiksc_build_callees( $api, $file, $plugin ); //oikai_save_callees( $post_id ); return( $post_id ); }