true ) ) ) || in_array( $_GET['post_type'], array( 'post', 'page' ) ) ) $post_type = $_GET['post_type']; else wp_die( __('Invalid post type') ); if ( 'post' != $post_type ) { $parent_file = "edit.php?post_type=$post_type"; $submenu_file = "post-new.php?post_type=$post_type"; } else { $parent_file = 'edit.php'; $submenu_file = 'post-new.php'; } $post_type_object = get_post_type_object($post_type); $title = $post_type_object->labels->add_new_item; $editing = true; if ( 'post' == $post_type && !current_user_can('edit_posts') ) { include('./admin-header.php'); ?>
edit_posts capability to your user, in order to be authorized to post.
You can also e-mail the admin to ask for a promotion.
When you’re promoted, just reload this page and you’ll be able to blog. :)'), get_option('admin_email')); ?>