This should hide it for everyone but the admin. If you run into any issues, you can use a plugin like Advanced Access Manager to get the job done. With that you will have more control of what each user level has access to.
function hide_yoastseo() {
if ( !current_user_can( 'administrator' ) ) :
remove_action('admin_bar_menu', 'wpseo_admin_bar_menu',95);
remove_menu_page('wpseo_dashboard');
endif;
}
add_action( 'admin_init', 'hide_yoastseo');
Related Posts:
- Best collection of code for your 'functions.php' file [closed]
- How to check if user is in back end?
- How do i know the current post type when on post.php in admin?
- Create tabs inside Plugins Admin Page [closed]
- Changing the “Plugin Activated” Message Default
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- What are the best practices for updating?
- How to set back-end language per user?
- How to roll back a WordPress plugin update?
- How can I make an Ajax login form work with FORCE_SSL_ADMIN enabled?
- Is There a WordPress Hook to Filter the Edit Posts View?
- How can I modify the Capability needed to access a plugin’s options?
- Changing wp login url without .htaccess
- Add section (add_settings_section) to a custom page (add_submenu_page)
- Allowing Yoast SEO plugin to track me
- How to remove duplicate sub-menu name for top level menu items in a plugin?
- Admin plugin, how can I output a different content-type?
- Plugin or mod for wordpress to make content publication SUPER easy
- How can I log a user out of WordPress before the page loads?
- How do I only load a plugin js on it’s settings pages?
- How to enable Admins to see Plugins
- How to add a help tab to all admin pages – including plugin pages
- Custom plugin settings: clicking “save changes” does not display success message
- Creating button next to “add media” that allows you to choose a single post
- Bad Request (Invalid Hostname) on working server, database problem
- How to develop a community feature in the dashboard for multiauthor site
- Trying to add admin file upload form plugin
- WordPress Plugin Look & Feel
- Exclude custom post_type in sitemap generation?
- Is there an action that is called when a post is restored from the trash?
- What’s the point of using WordPress’s built in admin-ajax.php?
- How can I get a list of plugins and which blogs are using them?
- Yoast SEO Calling content filters 2 additional times
- Filter or action hook to insert content on admin pages before tag
- Is there a way to lock certain pages from being edited by anyone other then the admin?
- Yoast SEO blocking/re-initialising longer running process
- Can’t access my WP dashboard: fatal error? [closed]
- why in my wordpress admin panel the membership option is not showing
- How to set CORS header?
- How to edit/delete single row items in a table on my own menu page
- Admin Dashboard with Custom Tab for Client
- Moving WordPress from host without FTP?
- How do I remove the entire left nav bar in admin for certain level users?
- Making menu link open in new tab?
- Change wording of admin menu item?
- How to handle admin and passwords requests from plugins developers?
- wordpress reusable content blocks
- Cannot access wp-admin after disabling all plugin
- Set of plugins to control the Admin UI
- Add custom taxonomy to title tag [closed]
- How to send little data between admin pages of my plugin?
- Which plugin will let me decide what users have access to on their side bar in wp-admin?
- How can I make uploaded images in the editor load with HTTPS?
- What would be the advantages/disadvantages of remote plugin installation?
- Editing admin pages in WordPress [closed]
- Hook to plugins admin settings
- One of my plugins broke when I tried to update it, how do I safely uninstall it?
- Layout Plugin Admin Pages: Use BootStrap? [closed]
- Remove Duplicator plugin from admin menu if not an administrator
- Doubt using $wpbd->get_col for a single column
- See which user installed a plugin?
- Edit default comments page in WP Admin
- Add a custom form on the post-new.php admin page
- All Users > User List > Update User Meta Field Inline
- Globally register styles but enqueue them selectively
- Error “preg_match_all” with WordPress SEO by Yoast plugin [closed]
- Admin Panel pagination link styles
- Is this the right way to execute some PHP in my plugin after a button click on an options page?
- How can I force users to a particular subdomain to log in for MU (Multisite)?
- Display update notification messages like ‘What’s New’
- WordPress display breadcrumbs using Yoast plugin [closed]
- admin panel save option with ajax
- Custom Form only for admin
- how to call jQuery in admin as well as in homepage
- What would cause edit buttons for plugins to disappear?
- WordPress plugins not showing after switching servers
- Mystery URL http://#/ Listed in XML Sitemap Created by WordPress SEO by Yoast Plugin
- Adding hero images to blog posts
- How to create plugin list groups?
- Frontpage Admin Bar Disappeared
- How to clean up unnecessary file inside wp-content/plugins/wordpress-seo?
- What is the recommended way to be notified of security updates to my plugins? [closed]
- Open graph issue on my theme
- TypeErrors with Yoast, jQuery in conflict?
- Why plugin’s icon for the menu not found?
- Need help with restricted page for users
- Possible to change meta data single quotes to dobule quotes in yoast wordpress seo? [closed]
- Allow direct access to files/folders within WordPress to replace wp-admin
- Yoast Seo noindex added to pages outside wordpress
- Fatal error in wordpress
- YOAST slug does not take the custom permalink I have made
- how to make yoast seo read text from custom fields in custom post type
- Remove a specific sitemap from Sitemap_index.xml
- Display Any Field fromAdmin Panel in Frontend via Shortcode?
- Remove wpseo filter from polylang plugin
- How to disable Yoast meta description for all pages
- What plugin presents these extra columns in wp-admin -> plugins
- How can I hide Dashboard notifications for just one particular plugin?
- Remove 3rd party plugin notices from within own plugin
- How is wp_admin_notice supposed to work?