Description
Usage
oikth_get_attachment( $version );Parameters
- $version
- ( mixed ) required –
Returns
voidSource
File name: oik-themes/feed/oik-themes-feed.phpLines:
1 to 18 of 18
function oikth_get_attachment( $version ) { oik_require( "includes/bw_posts.php" ); $atts = array( "post_type" => "attachment" , "post_parent" => $version->ID , "numberposts" => 1 , "post_mime_type" => "application/zip" ); $posts = bw_get_posts( $atts ); $attachment = bw_array_get( $posts, 0, null ); bw_trace2( $attachment ); if ( $attachment ) { $file = get_post_meta( $attachment->ID, "_wp_attached_file", true ); } else { $file = null; } bw_trace2( $file ); return( $file ); }View on GitHub
Called by
1 to 2 of 2
Invoked by
Call hooks
API Letters:
