You appear to be a bot. Output may be restricted
Description
Usage
_bw_create_page( $page, $post_type, $content );
Parameters
- $page
- ( mixed ) required –
- $post_type
- ( mixed ) optional default: page –
- $content
- ( mixed ) optional –
Returns
voidSource
File name: oik-privacy-policy/admin/oik-privacy-policy.phpLines:
1 to 15 of 15
function _bw_create_page( $page, $post_type="page", $content=null ) { $post = array( 'post_type' => $post_type , 'post_status' => 'publish' , 'post_title' => $page , 'comment_status' => 'closed' ); if ( $content ) { $post['post_content'] = $content; } else { $post['post_content'] = bw_create_content( $page ); } $post_id = wp_insert_post( $post, TRUE ); bw_trace2( $post_id ); return( $post_id ); }View on GitHub View on Trac