You appear to be a bot. Output may be restricted
Description
Update the meta data for an oik_api post_type
Usage
oiksc_update_oik_api( $post, $plugin, $func, $file, $type, $title );
Parameters
- $post
- ( post ) required – the oik_api object
- $plugin
- ( ID ) required – the plugin this API is associated with
- $func
- ( string ) required – the API name
- $file
- ( string ) required – the source file for the API
- $type
- ( string ) required – the API type
- $title
- ( mixed ) required –
Returns
voidSource
File name: oik-shortcodes/admin/oik-shortcodes.phpLines:
1 to 13 of 13
function oiksc_update_oik_api( $post, $plugin, $func, $file, $type, $title ) { $post->post_title = oiksc_oik_api_post_title( $func, $type, $title ); /* Set metadata fields */ $_POST['_oik_api_name'] = $func; oik_require( "shortcodes/oik-api-importer.php", "oik-shortcodes" ); $_POST['_oik_api_class'] = oikai_get_classref( $func, null, $plugin, $file ); $_POST['_oik_api_plugin'] = $plugin; $_POST['_oik_api_source'] = $file; oik_require( "admin/oik-files.php", "oik-shortcodes" ); $_POST['_oik_fileref'] = oiksc_get_oik_fileref( $plugin, $file ); $_POST['_oik_api_type'] = $type; wp_update_post( $post ); }View on GitHub