Description
Programmatically update the oik_class recordThis function is required to correct the _oik_fileref field which may have been inadvertently set to a serialised post object rather than a simple post id.
Usage
oikai_update_oik_class( $post, $class, $plugin, $file );Parameters
- $post
- ( object ) required – a post object
- $class
- ( string ) required – the class name
- $plugin
- ( ID ) required – the implementing plugin ID
- $file
- ( string ) required – the filename.
Returns
voidSource
File name: oik-shortcodes/shortcodes/oik-api-importer.phpLines:
1 to 5 of 5
function oikai_update_oik_class( $post, $class, $plugin, $file ) { oik_require( "admin/oik-files.php", "oik-shortcodes" ); $_POST['_oik_fileref'] = oiksc_get_oik_fileref( $plugin, $file ); wp_update_post( $post ); }View on GitHub
Called by
1 to 1 of 1
