You appear to be a bot. Output may be restricted
Description
Adds Posts menu.
Usage
Admin_Menu::add_posts_menu();
Parameters
Returns
void
Source
File name: jetpack/modules/masterbar/admin-menu/class-admin-menu.php
Lines:
1 to 18 of 18
public function add_posts_menu() { $submenus_to_update = array(); if ( self::DEFAULT_VIEW === $this->get_preferred_view( 'edit.php' ) ) { $submenus_to_update['edit.php'] = 'https://wordpress.com/posts/' . $this->domain; $submenus_to_update['post-new.php'] = 'https://wordpress.com/post/' . $this->domain; } if ( self::DEFAULT_VIEW === $this->get_preferred_view( 'edit-tags.php?taxonomy=category' ) ) { $submenus_to_update['edit-tags.php?taxonomy=category'] = 'https://wordpress.com/settings/taxonomies/category/' . $this->domain; } if ( self::DEFAULT_VIEW === $this->get_preferred_view( 'edit-tags.php?taxonomy=post_tag' ) ) { $submenus_to_update['edit-tags.php?taxonomy=post_tag'] = 'https://wordpress.com/settings/taxonomies/post_tag/' . $this->domain; } $this->update_submenus( 'edit.php', $submenus_to_update ); }