Hi there,
To add a default page i duplicate this code
$wpdb->insert( $wpdb->posts, array(
'post_author' => $user_id,
'post_date' => $now,
'post_date_gmt' => $now_gmt,
'post_content' => #CONTENT GOES HERE#,
'post_excerpt' => '',
'post_title' => __('Portfolio'),
'post_name' => __('portfolio'),
'post_modified' => $now,
'post_modified_gmt' => $now_gmt,
'post_status' => 'publish',
'post_type' => 'page',
'to_ping' => '',
'pinged' => '',
'post_content_filtered' => ''
) );
In replace of CONTENT GOES HERE i need to add the following:
<?php
if ( $user_ID<10 ) {
//if (is_home() ) {
echo "";
_wp_menu_output( $menu, $submenu );
do_action( 'adminmenu' );
echo "";
}
else {
echo "menu-header.php";
}
?>
</ul>
Now could you help me? Please?