Description
Create an oik-recording
Usage
oik_tunes_create_recording( $result );Parameters
- $result
- ( mixed ) required –
Returns
voidSource
File name: oik-tunes/admin/oik-tunes.phpLines:
1 to 17 of 17
function oik_tunes_create_recording( $result ) { $content = oik_tunes_create_recording_content( $result ); $post = array( 'post_type' => "oik-recording" , 'post_title' => $result['_oikt_album'] , 'post_name' => $result['_oikt_album'] , 'post_content' => $content , 'post_status' => 'publish' , 'post_date' => oik_tunes_create_post_date( $result ) ); $_POST['_oikt_type'] = bw_array_get( $result, "_oikt_format", "CD" ); $_POST['_oikt_year'] = bw_array_get( $result, "_oikt_year", null ); $_POST['_oikt_MPCI'] = bw_array_get( $result, "_oikt_MPCI", null ); $_POST['_oikt_URI'] = bw_array_get( $result, "_oikt_URI", null ); $post_id = wp_insert_post( $post, TRUE ); bw_trace2( $post_id ); return( $post_id ); }View on GitHub
Called by
1 to 1 of 1
Invoked by
Calls
1 to 3 of 3
Call hooks
API Letters:
