The menu bar is all controlled by an object instantiated as $wp_admin_bar
.
I think this is what you want:
function remove_page_menu_wpse_104826() {
global $wp_admin_bar;
// var_dump($wp_admin_bar); // debug; uncomment and look at the bottom of the page for the big mess
$wp_admin_bar->remove_menu('new-page');
}
add_action('wp_before_admin_bar_render', 'remove_page_menu_wpse_104826', 1);
Related Posts:
- Adminbar Missing “Edit Page”
- products category page editing
- How to disable posts and use pages only
- Custom SQL Query for WordPress page
- Get next/previous cousin page
- I want only my sub-pages to be clickable in the navbar
- How restrict page for users logged? [closed]
- Only allow new subpages to be created
- Hide Visibility Option From WordPress Publish Metabox
- How do I turn comments off for pages, but not posts?
- How to make nested page structure?
- List Child Pages of Parent Parent Page (Child pages from Grand Parent)
- How to add meta boxes to Pages
- Form action redirect to the same page
- How do I create a separate page for each author?
- Overriding the currently selected menu item
- Missing parent page attribute
- Hiding Page by Title from Editing
- Two Search pages, One search form
- Why doesnt ONE of my links in the footer work properly? [closed]
- Create subpage – filter parent pages list
- Get page by its ID and display it on another one
- creating and styling a within a page
- How do i change page template in bulk?
- What are trackbacks?
- Determine page content based on page parent
- How to enumerate a list of posts?
- How can I redirect to my custom page without loading the Dashboard itself?
- Remove ID page from wp_count
- category slug and page slug same
- New user Registration data imported into Page
- Could be a namespace conflict (?) with login form and register form on the same page
- The concept of non-blog content
- Loading Multiple Comments Pages via Ajax?
- Change base URL of pages created by certain users
- Updated WordPress, now getting errors on site
- Edit Parent page drop menu when creating a page
- Get parent of current page
- How to list a page tree?
- How to create a page and display only the posts with a specific custom field value?
- Attachment pages stealing page slugs
- How to add an external php page with wordpress?
- How to have a next page for post?
- Can I change the “Home” text in the menu?
- Search child pages from a specific page parent
- Proper procedure for wp_insert_post?
- How to disable delete option for a specific page? [closed]
- Remove_filter (‘the_content’, ‘wpautop’) only pages
- Weebly Migration to WordPress [closed]
- Need to create a custom page on a website
- How To Render Shortcode In AJAX Response?
- How to create different template designs for different pages in WordPress [closed]
- Do I have to widgetize my pages?
- Page templates in subdirectories and auto generator
- Use page template for custom $_GET content
- Get rid of “comment” field on non-blog pages [duplicate]
- Custom page only editable by one user
- How to control display of page lists on sidebar that doesn’t have childrens
- Is there a template tag/function for getting the URL (or slug or name or ID) of the blog page when using a “static” front page
- Problems in creating a static site with WordPress
- Creating new page/tab in groups section not working! [closed]
- Prompting for review / reapproval of page content
- Limit the amount of main pages
- Change displayed “page name” to distinguish multiple pages with the same title
- Add separate list of pages under Admin
- add title to widgets of wordpress
- Custom user tables not working after migration
- remove “Edit” from select pages
- Add custom action to the page listing screen
- How to list pages from an author?
- How can a .css file be applied to a virtual page?
- WordPress blog posts template bug [closed]
- Checkboxes to automatically create pages when I activate a theme
- Cannot update page – with too many characters?
- Is it possible to embedd this web app to my website [duplicate]
- Using external DB within wordpress
- Cannot use old slug – it just 301s to site home page
- Author information on all pages
- include exception inside theme for empty widget area
- My pages disappeared from the list
- Pre-populating new Page creation with shortcodes
- WordPress Pages “allow comments” meta option can’t be checked
- How to display time when page is created and edited
- Loading internal page
- Firing page_publish where page is child page
- Add role and edit page capabilities
- Page loads all pages of the image gallery with pagination
- Group Pages based on Parent in Admin Area
- Google indexed pages for one page site
- WordPress, page 2 shows the same posts as page 1
- static page with buton that opens collect email form
- Parent for a single (single.php)
- Create a new page for each form selection
- How to create an user defined page?
- How can one get page by pagename if it is a child page?
- Archive with specific keyword by category sorted by date
- How to pass the Querystring in pages?
- Is it possible to keep the page title from actually appearing at the top of the page?
- Edit the text location of a form
- Missing page on wordpress “Pages” dashboard [closed]