You appear to be a bot. Output may be restricted
Description
Get the parsed source object by sourceref
Usage
$post = oiksc_parsed_source::get_parsed_source_by_sourceref( $id );
Parameters
- $id
- ( mixed ) required –
Returns
post the post object – there should be a maximum of one
Source
File name: oik-shortcodes/classes/class-oiksc-parsed-source.php
Lines:
1 to 11 of 11
function get_parsed_source_by_sourceref( $id ) { oik_require( "includes/bw_posts.php" ); $atts = array(); $atts['post_type'] = "oik_parsed_source"; $atts['meta_key'] = "_oik_sourceref" ; $atts['meta_value'] = $id; $atts['numberposts'] = 1; $posts = bw_get_posts( $atts ); $post = bw_array_get( $posts, 0, null ); return( $post ); }