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?
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- How to roll back a WordPress plugin update?
- How can I make an Ajax login form work with FORCE_SSL_ADMIN enabled?
- How can I modify the Capability needed to access a plugin’s options?
- 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
- Bad Request (Invalid Hostname) on working server, database problem
- How to develop a community feature in the dashboard for multiauthor site
- What’s the point of using WordPress’s built in admin-ajax.php?
- Filter or action hook to insert content on admin pages before tag
- Yoast SEO blocking/re-initialising longer running process
- Can’t access my WP dashboard: fatal error? [closed]
- 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
- How do I remove the entire left nav bar in admin for certain level users?
- Change wording of admin menu item?
- wordpress reusable content blocks
- Cannot access wp-admin after disabling all plugin
- Set of plugins to control the Admin UI
- 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?
- What would be the advantages/disadvantages of remote plugin installation?
- Editing admin pages in WordPress [closed]
- 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
- Add a custom form on the post-new.php admin page
- Error “preg_match_all” with WordPress SEO by Yoast plugin [closed]
- 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 accounts unable to see plugins from external IP
- WordPress Sitemap including pages that aren’t there
- 306 MB of wp_options occupied by WordPress SEO Plugin, is that normal? [closed]
- Plugin dependencies: show notice like theme plugins dependencies
- Replace default og:image tag YOAST
- WordPress wp-admin/network/plugin-install
- how to access all user dashboard on fronted page [closed]
- How to set add question capability for author role in wp pro quiz plugin
- do_action() hook into load-(page)
- Admin AJAX doesn’t work in plugin admin page – Even though code is copied verbatim from WordPress Codex
- Add sub menu page in your plugin
- What’s causing this error? “Warning: Invalid argument”
- Help in using SEO Plugins: SEO Ultimate And Yoast SEO Plugin
- WordPress Admin Menu defining function is seperate file
- Create WordPress posts from JSON array using plugin in admin
- Plugin getting Cannot modify header information errors
- creating a plug in that would tap into save/update action of posts [closed]
- Yoast Force Rewrite Crashed Site [closed]
- How to use the CSS of the WordPress core in the development of my administration page?
- How-to: This block can only be used once
- in source code but I can’t find it in files or plugins
- Updating WordPress plugin admin panel footer text
- getting notifications about updates only in the “core” page
- Remove value from array within post meta ajax admin
- Add logo to admin menu in my plugin
- Plugin permissions for Editor role
- Error: Can´t access facebook comment plugin admin page
- How to add an admin alert for missing plugins
- How to hide plugin options for editors via functions.php
- Yoast SEO Plug In and my Theme duplicating code. Need some feedback on what to do? [closed]
- Gathering all Custom Post Type posts in to array/object the proper way
- Adding a jQuery modal dialog to the admin area
- Redirect plugin after form submit or show errors
- How to create a plugin page that shows XML?
- custom wordpress theme and yoast seo injecting text in body
- How to create admin setting for this small plugin
- WC Fix Attributes – ‘Add New’ Not Searchable/Delayed
- Admin Custom Plugin List Files in admin Table
- Hide all Admin Notices and move on a separate page
- Does anyone know why my SEO and title become one?
- My wordpress local urls is still displayed even moved to live
- How To Remove “All, Publish, Draft and Expired” in Events Dashboard
- SEO Site Title appearing in google search despite not being added
- Get content and send to 3rd party
- Wordress admin page is fetching error You do not have sufficient permissions to access this page.
- How to enable Admins to see Plugins
- Getting 404 page not found error while trying to access add new plugin / themes
- admin panel save option with ajax
- What would cause edit buttons for plugins to disappear?
- How to create plugin list groups?
- What is the recommended way to be notified of security updates to my plugins? [closed]
- 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
- Fatal error in wordpress
- YOAST slug does not take the custom permalink I have made
- Remove a specific sitemap from Sitemap_index.xml