You appear to be a bot. Output may be restricted
Description
Return the post_id for an oik_file
Used to set the _oik_fileref
Usage
$ID = oiksc_get_oik_fileref( $plugin, $file );
Parameters
- $plugin
- ( ID ) required – the plugin ID
- $file
- ( string ) required – file name
Returns
ID the post ID of the oik_file or null
Source
File name: oik-shortcodes/admin/oik-files.php
Lines:
1 to 10 of 10
function oiksc_get_oik_fileref( $plugin, $file ) { $post = oiksc_get_oik_file_byname( $plugin, $file ); if ( $post ) { $post_id = $post->ID; } else { global $oikai_post_id; $post_id = $oikai_post_id; } return( $post_id ); }