May 30, 2012 @ 01:42:41 | Current Revision |
Content |
Unchanged: Taken from: <a href="http:// sethstevenson.net/customize- the-wordpress-admin-menu- based-on-user-roles/" target="_blank" >http://sethstevenson.net/ customize-the- wordpress-admin- menu-based-on- user-roles/</a> | Unchanged: Taken from: <a href="http:// sethstevenson.net/customize- the-wordpress-admin-menu- based-on-user-roles/" target="_blank" >http://sethstevenson.net/ customize-the- wordpress-admin- menu-based-on- user-roles/</a> |
| Added: Important Note: |
| Added: This tutorial is an alternative which is untried but looks very interesting. |
| Added: <a href="http:// wp.tutsplus.com/" target="_blank">WP Tuts</a> - <a href="http:// wp.tutsplus.com/tutorials/ creative-coding/ customizing- your-wordpress-admin/" target="_blank" >Customising Your WordPress Admin</a> |
Unchanged: WordPress can be a powerful content management system but if you have multiple users often some can end up with permissions that you <em>really</em> wish they didn’t have. There are plenty of plugins that will let you customize user permissions but it’s not that hard to do ourselves by removing certain links from the admin menu for those specific user roles. | Unchanged: WordPress can be a powerful content management system but if you have multiple users often some can end up with permissions that you <em>really</em> wish they didn’t have. There are plenty of plugins that will let you customize user permissions but it’s not that hard to do ourselves by removing certain links from the admin menu for those specific user roles. |
Unchanged: <em>Note that this method doesn’t actually remove user permissions but just the admin menu links that would get them there.</em> | Unchanged: <em>Note that this method doesn’t actually remove user permissions but just the admin menu links that would get them there.</em> |
Unchanged: <h2>Basic example</h2> | Unchanged: <h2>Basic example</h2> |
Unchanged: Add the following to functions.php (or create your own plugin) to remove the “Tools” menu from any user with a role lower than Author. | Unchanged: Add the following to functions.php (or create your own plugin) to remove the “Tools” menu from any user with a role lower than Author. |
Unchanged: [php] | Unchanged: [php] |
Unchanged: add_action( 'admin_init', 'my_remove_menu_pages' ); | Unchanged: add_action( 'admin_init', 'my_remove_menu_pages' ); |
Unchanged: function my_remove_menu_pages() { | Unchanged: function my_remove_menu_pages() { |
Unchanged: // If the user does not have access to publish posts | Unchanged: // If the user does not have access to publish posts |
Unchanged: if(!current_user_ can('publish_posts')) { | Unchanged: if(!current_user_ can('publish_posts')) { |
Unchanged: // Remove the "Tools" menu | Unchanged: // Remove the "Tools" menu |
Unchanged: remove_menu_page( 'tools.php'); | Unchanged: remove_menu_page( 'tools.php'); |
Unchanged: } | Unchanged: } |
Unchanged: } | Unchanged: } |
Unchanged: [/php] | Unchanged: [/php] |
Unchanged: You can choose a variety of user levels rather than <code>publish_ posts</code> for example <code> edit_users</code>, <code> delete_pages</code>, etc. View a complete list of WordPress <a href="http:// codex.wordpress.org/Roles_ and_Capabilities">roles and capabilities</a>. | Unchanged: You can choose a variety of user levels rather than <code>publish_ posts</code> for example <code> edit_users</code>, <code> delete_pages</code>, etc. View a complete list of WordPress <a href="http:// codex.wordpress.org/Roles_ and_Capabilities">roles and capabilities</a>. |
Unchanged: The function <a href="http:// codex.wordpress.org/Function_ Reference/remove_menu_page" >remove_menu_ page()</a> removes a menu item based off of the menu slug you pass it. To figure out that the menu slug was named tools.php I used used Chrome's developer tools and right clicked on the Tools menu and selected Inspect element. This showed me that the tools menu was linked as<code><a href="tools.php" tabindex="1"> Tools</a></code>. | Unchanged: The function <a href="http:// codex.wordpress.org/Function_ Reference/remove_menu_page" >remove_menu_ page()</a> removes a menu item based off of the menu slug you pass it. To figure out that the menu slug was named tools.php I used used Chrome's developer tools and right clicked on the Tools menu and selected Inspect element. This showed me that the tools menu was linked as<code><a href="tools.php" tabindex="1"> Tools</a></code>. |
Unchanged: To save you the hassle of figuring out each menu slug I <a href="http:// sethstevenson.net/customize- the-wordpress-admin-menu- based-on-user- roles/#menu- slugs">listed them below</a>. | Unchanged: To save you the hassle of figuring out each menu slug I <a href="http:// sethstevenson.net/customize- the-wordpress-admin-menu- based-on-user- roles/#menu- slugs">listed them below</a>. |
Unchanged: <h2>Removing sub-menu items</h2> | Unchanged: <h2>Removing sub-menu items</h2> |
Unchanged: [php] | Unchanged: [php] |
Unchanged: <pre>add_action( 'admin_init', 'my_remove_menu_pages' ); | Unchanged: <pre>add_action( 'admin_init', 'my_remove_menu_pages' ); |
Unchanged: function my_remove_menu_pages() { | Unchanged: function my_remove_menu_pages() { |
Unchanged: // If the user does not have access to add new users | Unchanged: // If the user does not have access to add new users |
Unchanged: if(!current_user_ can('add_users')) { | Unchanged: if(!current_user_ can('add_users')) { |
Unchanged: // Remove the "Link Categories" menu under "Links" | Unchanged: // Remove the "Link Categories" menu under "Links" |
Unchanged: remove_submenu_page( 'link-manager.php', 'edit-tags.php?taxonomy= link_category' ); | Unchanged: remove_submenu_page( 'link-manager.php', 'edit-tags.php?taxonomy= link_category' ); |
Unchanged: } | Unchanged: } |
Unchanged: }</pre> | Unchanged: }</pre> |
Unchanged: [/php] | Unchanged: [/php] |
Unchanged: <h2>Mixed example</h2> | Unchanged: <h2>Mixed example</h2> |
Unchanged: [php] | Unchanged: [php] |
Unchanged: add_action( 'admin_init', 'my_remove_menu_pages' ); | Unchanged: add_action( 'admin_init', 'my_remove_menu_pages' ); |
Unchanged: function my_remove_menu_pages() { | Unchanged: function my_remove_menu_pages() { |
Unchanged: if(!current_user_ can('add_users')) { | Unchanged: if(!current_user_ can('add_users')) { |
Unchanged: remove_menu_page( 'options-general.php'); // Settings | Unchanged: remove_menu_page( 'options-general.php'); // Settings |
Unchanged: remove_menu_page( 'tools.php'); // Tools | Unchanged: remove_menu_page( 'tools.php'); // Tools |
Unchanged: remove_menu_page( 'upload.php'); // Media | Unchanged: remove_menu_page( 'upload.php'); // Media |
Unchanged: remove_submenu_page( 'edit.php', 'edit-tags.php?taxonomy=category' ); // Post categories | Unchanged: remove_submenu_page( 'edit.php', 'edit-tags.php?taxonomy=category' ); // Post categories |
Unchanged: remove_submenu_page( 'edit.php', 'edit-tags.php?taxonomy=post_tag' ); // Post tags | Unchanged: remove_submenu_page( 'edit.php', 'edit-tags.php?taxonomy=post_tag' ); // Post tags |
Unchanged: } | Unchanged: } |
Unchanged: } | Unchanged: } |
Unchanged: [/php] | Unchanged: [/php] |
Unchanged: <h2>WordPress admin menu slugs</h2> | Unchanged: <h2>WordPress admin menu slugs</h2> |
Unchanged: I have created a Google Doc with these slugs. | Unchanged: I have created a Google Doc with these slugs. |
Unchanged: <table width="100%" border="0" cellspacing="0" cellpadding="0"> | Unchanged: <table width="100%" border="0" cellspacing="0" cellpadding="0"> |
Unchanged: <tbody> | Unchanged: <tbody> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td bgcolor="#F1F1F1" width="100">Dashboard</td> | Unchanged: <td bgcolor="#F1F1F1" width="100">Dashboard</td> |
Unchanged: <td bgcolor="#F1F1F1" >remove_menu_ page('index.php');</td> | Unchanged: <td bgcolor="#F1F1F1" >remove_menu_ page('index.php');</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Dashboard</td> | Unchanged: <td width="100">Dashboard</td> |
Unchanged: <td>remove_submenu_page( 'index.php', 'index.php' );</td> | Unchanged: <td>remove_submenu_page( 'index.php', 'index.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Updates</td> | Unchanged: <td width="100">Updates</td> |
Unchanged: <td>remove_submenu_page( 'index.php', 'update-core.php' );</td> | Unchanged: <td>remove_submenu_page( 'index.php', 'update-core.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: </tbody> | Unchanged: </tbody> |
Unchanged: </table> | Unchanged: </table> |
Unchanged: <hr /> | Unchanged: <hr /> |
Unchanged: <table width="100%" border="0" cellspacing="0" cellpadding="0"> | Unchanged: <table width="100%" border="0" cellspacing="0" cellpadding="0"> |
Unchanged: <tbody> | Unchanged: <tbody> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td bgcolor="#F1F1F1" width="100">Posts</td> | Unchanged: <td bgcolor="#F1F1F1" width="100">Posts</td> |
Unchanged: <td bgcolor="#F1F1F1" >remove_menu_ page('edit.php');</td> | Unchanged: <td bgcolor="#F1F1F1" >remove_menu_ page('edit.php');</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Posts</td> | Unchanged: <td width="100">Posts</td> |
Unchanged: <td>remove_submenu_page( 'edit.php', 'edit.php' );</td> | Unchanged: <td>remove_submenu_page( 'edit.php', 'edit.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Add New</td> | Unchanged: <td width="100">Add New</td> |
Unchanged: <td>remove_submenu_page( 'edit.php', 'post-new.php' );</td> | Unchanged: <td>remove_submenu_page( 'edit.php', 'post-new.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Categories</td> | Unchanged: <td width="100">Categories</td> |
Unchanged: <td>remove_submenu_page( 'edit.php', 'edit-tags.php?taxonomy=category' );</td> | Unchanged: <td>remove_submenu_page( 'edit.php', 'edit-tags.php?taxonomy=category' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Post Tags</td> | Unchanged: <td width="100">Post Tags</td> |
Unchanged: <td>remove_submenu_page( 'edit.php', 'edit-tags.php?taxonomy=post_tag' );</td> | Unchanged: <td>remove_submenu_page( 'edit.php', 'edit-tags.php?taxonomy=post_tag' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td bgcolor="#F1F1F1" width="100">Media</td> | Unchanged: <td bgcolor="#F1F1F1" width="100">Media</td> |
Unchanged: <td bgcolor="#F1F1F1" >remove_menu_ page('upload.php');</td> | Unchanged: <td bgcolor="#F1F1F1" >remove_menu_ page('upload.php');</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Library</td> | Unchanged: <td width="100">Library</td> |
Unchanged: <td>remove_submenu_page( 'upload.php', 'upload.php' );</td> | Unchanged: <td>remove_submenu_page( 'upload.php', 'upload.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Add New</td> | Unchanged: <td width="100">Add New</td> |
Unchanged: <td>remove_submenu_page( 'upload.php', 'media-new.php' );</td> | Unchanged: <td>remove_submenu_page( 'upload.php', 'media-new.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td bgcolor="#F1F1F1" width="100">Links</td> | Unchanged: <td bgcolor="#F1F1F1" width="100">Links</td> |
Unchanged: <td bgcolor="#F1F1F1" >remove_menu_ page('link-manager.php');</td> | Unchanged: <td bgcolor="#F1F1F1" >remove_menu_ page('link-manager.php');</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Links</td> | Unchanged: <td width="100">Links</td> |
Unchanged: <td>remove_submenu_page( 'link-manager.php', 'link-manager.php' );</td> | Unchanged: <td>remove_submenu_page( 'link-manager.php', 'link-manager.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Add New</td> | Unchanged: <td width="100">Add New</td> |
Unchanged: <td>remove_submenu_page( 'link-manager.php', 'link-add.php' );</td> | Unchanged: <td>remove_submenu_page( 'link-manager.php', 'link-add.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Link Categories</td> | Unchanged: <td width="100">Link Categories</td> |
Unchanged: <td>remove_submenu_page( 'link-manager.php', 'edit-tags.php?taxonomy= link_category' );</td> | Unchanged: <td>remove_submenu_page( 'link-manager.php', 'edit-tags.php?taxonomy= link_category' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td bgcolor="#F1F1F1" width="100">Pages</td> | Unchanged: <td bgcolor="#F1F1F1" width="100">Pages</td> |
Unchanged: <td bgcolor="#F1F1F1" >remove_menu_ page('edit.php?post_ type=page');</td> | Unchanged: <td bgcolor="#F1F1F1" >remove_menu_ page('edit.php?post_ type=page');</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Pages</td> | Unchanged: <td width="100">Pages</td> |
Unchanged: <td>remove_submenu_page( 'edit.php?post_type=page', 'edit.php?post_type=page' );</td> | Unchanged: <td>remove_submenu_page( 'edit.php?post_type=page', 'edit.php?post_type=page' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Add New</td> | Unchanged: <td width="100">Add New</td> |
Unchanged: <td>remove_submenu_page( 'edit.php?post_type=page', 'post-new.php?post_type=page' );</td> | Unchanged: <td>remove_submenu_page( 'edit.php?post_type=page', 'post-new.php?post_type=page' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td bgcolor="#F1F1F1" width="100">Comments</td> | Unchanged: <td bgcolor="#F1F1F1" width="100">Comments</td> |
Unchanged: <td bgcolor="#F1F1F1" >remove_menu_ page('edit-comments.php');</td> | Unchanged: <td bgcolor="#F1F1F1" >remove_menu_ page('edit-comments.php');</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: </tbody> | Unchanged: </tbody> |
Unchanged: </table> | Unchanged: </table> |
Unchanged: <hr /> | Unchanged: <hr /> |
Unchanged: <table width="100%" border="0" cellspacing="0" cellpadding="0"> | Unchanged: <table width="100%" border="0" cellspacing="0" cellpadding="0"> |
Unchanged: <tbody> | Unchanged: <tbody> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td bgcolor="#F1F1F1" width="100">Appearance</td> | Unchanged: <td bgcolor="#F1F1F1" width="100">Appearance</td> |
Unchanged: <td bgcolor="#F1F1F1" >remove_menu_ page('themes.php');</td> | Unchanged: <td bgcolor="#F1F1F1" >remove_menu_ page('themes.php');</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Themes</td> | Unchanged: <td width="100">Themes</td> |
Unchanged: <td>remove_submenu_page( 'themes.php', 'themes.php' );</td> | Unchanged: <td>remove_submenu_page( 'themes.php', 'themes.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Widgets</td> | Unchanged: <td width="100">Widgets</td> |
Unchanged: <td>remove_submenu_page( 'themes.php', 'widgets.php' );</td> | Unchanged: <td>remove_submenu_page( 'themes.php', 'widgets.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Menus</td> | Unchanged: <td width="100">Menus</td> |
Unchanged: <td>remove_submenu_page( 'themes.php', 'nav-menus.php' );</td> | Unchanged: <td>remove_submenu_page( 'themes.php', 'nav-menus.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Editor</td> | Unchanged: <td width="100">Editor</td> |
Unchanged: <td>remove_submenu_page( 'themes.php', 'theme-editor.php' );</td> | Unchanged: <td>remove_submenu_page( 'themes.php', 'theme-editor.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td bgcolor="#F1F1F1" width="100">Plugins</td> | Unchanged: <td bgcolor="#F1F1F1" width="100">Plugins</td> |
Unchanged: <td bgcolor="#F1F1F1" >remove_menu_ page('plugins.php');</td> | Unchanged: <td bgcolor="#F1F1F1" >remove_menu_ page('plugins.php');</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Plugins</td> | Unchanged: <td width="100">Plugins</td> |
Unchanged: <td>remove_submenu_page( 'plugins.php', 'plugins.php' );</td> | Unchanged: <td>remove_submenu_page( 'plugins.php', 'plugins.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Add New</td> | Unchanged: <td width="100">Add New</td> |
Unchanged: <td>remove_submenu_page( 'plugins.php', 'plugin-install.php' );</td> | Unchanged: <td>remove_submenu_page( 'plugins.php', 'plugin-install.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Editor</td> | Unchanged: <td width="100">Editor</td> |
Unchanged: <td>remove_submenu_page( 'plugins.php', 'plugin-editor.php' );</td> | Unchanged: <td>remove_submenu_page( 'plugins.php', 'plugin-editor.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td bgcolor="#F1F1F1" width="100">Users</td> | Unchanged: <td bgcolor="#F1F1F1" width="100">Users</td> |
Unchanged: <td bgcolor="#F1F1F1" >remove_menu_ page('users.php');</td> | Unchanged: <td bgcolor="#F1F1F1" >remove_menu_ page('users.php');</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Users</td> | Unchanged: <td width="100">Users</td> |
Unchanged: <td>remove_submenu_page( 'users.php', 'users.php' );</td> | Unchanged: <td>remove_submenu_page( 'users.php', 'users.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Add New</td> | Unchanged: <td width="100">Add New</td> |
Unchanged: <td>remove_submenu_page( 'users.php', 'user-new.php' );</td> | Unchanged: <td>remove_submenu_page( 'users.php', 'user-new.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Your Profile</td> | Unchanged: <td width="100">Your Profile</td> |
Unchanged: <td>remove_submenu_page( 'users.php', 'profile.php' );</td> | Unchanged: <td>remove_submenu_page( 'users.php', 'profile.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td bgcolor="#F1F1F1" width="100">Tools</td> | Unchanged: <td bgcolor="#F1F1F1" width="100">Tools</td> |
Unchanged: <td bgcolor="#F1F1F1" >remove_menu_ page('tools.php');</td> | Unchanged: <td bgcolor="#F1F1F1" >remove_menu_ page('tools.php');</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Tools</td> | Unchanged: <td width="100">Tools</td> |
Unchanged: <td>remove_submenu_page( 'tools.php', 'tools.php' );</td> | Unchanged: <td>remove_submenu_page( 'tools.php', 'tools.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Import</td> | Unchanged: <td width="100">Import</td> |
Unchanged: <td>remove_submenu_page( 'tools.php', 'import.php' );</td> | Unchanged: <td>remove_submenu_page( 'tools.php', 'import.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Export</td> | Unchanged: <td width="100">Export</td> |
Unchanged: <td>remove_submenu_page( 'tools.php', 'export.php' );</td> | Unchanged: <td>remove_submenu_page( 'tools.php', 'export.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td bgcolor="#F1F1F1" width="100">Settings</td> | Unchanged: <td bgcolor="#F1F1F1" width="100">Settings</td> |
Unchanged: <td bgcolor="#F1F1F1" >remove_menu_ page('options- general.php');</td> | Unchanged: <td bgcolor="#F1F1F1" >remove_menu_ page('options- general.php');</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">General</td> | Unchanged: <td width="100">General</td> |
Unchanged: <td>remove_submenu_page( 'options-general.php', 'options-general.php' );</td> | Unchanged: <td>remove_submenu_page( 'options-general.php', 'options-general.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Writing</td> | Unchanged: <td width="100">Writing</td> |
Unchanged: <td>remove_submenu_page( 'options-general.php', 'options-writing.php' );</td> | Unchanged: <td>remove_submenu_page( 'options-general.php', 'options-writing.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Reading</td> | Unchanged: <td width="100">Reading</td> |
Unchanged: <td>remove_submenu_page( 'options-general.php', 'options-reading.php' );</td> | Unchanged: <td>remove_submenu_page( 'options-general.php', 'options-reading.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Discussion</td> | Unchanged: <td width="100">Discussion</td> |
Unchanged: <td>remove_submenu_page( 'options-general.php', 'options-discussion.php' );</td> | Unchanged: <td>remove_submenu_page( 'options-general.php', 'options-discussion.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Media</td> | Unchanged: <td width="100">Media</td> |
Unchanged: <td>remove_submenu_page( 'options-general.php', 'options-media.php' );</td> | Unchanged: <td>remove_submenu_page( 'options-general.php', 'options-media.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Privacy</td> | Unchanged: <td width="100">Privacy</td> |
Unchanged: <td>remove_submenu_page( 'options-general.php', 'options-privacy.php' );</td> | Unchanged: <td>remove_submenu_page( 'options-general.php', 'options-privacy.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: <tr> | Unchanged: <tr> |
Unchanged: <td width="100">Permalinks</td> | Unchanged: <td width="100">Permalinks</td> |
Unchanged: <td>remove_submenu_page( 'options-general.php', 'options-permalink.php' );</td> | Unchanged: <td>remove_submenu_page( 'options-general.php', 'options-permalink.php' );</td> |
Unchanged: </tr> | Unchanged: </tr> |
Unchanged: </tbody> | Unchanged: </tbody> |
Unchanged: </table> | Unchanged: </table> |
Deleted: | |
No comments yet.