Description
Get the parsed source object by sourceref
Usage
$post = bw_get_parsed_source_by_sourceref( $id );Parameters
- $id
- ( mixed ) required –
Returns
post the post object – there should be a maximum of oneSource
File name: oik-shortcodes/classes/class-oiksc-parsed-source.phpLines:
1 to 11 of 11
function bw_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 ); }View on GitHub
Called by
1 to 3 of 3
Invoked by
Calls
1 to 1 of 1
