Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Yoast SEO user roles
<?php
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/
/* Remove Yoast SEO user roles
* Credit: Yoast Team
* Last Tested: Oct 25 2017 using Yoast SEO 5.7.1 on WordPress 4.8.2
*/
// Remove Yoast `SEO Manager` role
if ( get_role('wpseo_manager') ) {
remove_role( 'wpseo_manager' );
}
// Remove Yoast `SEO Editor` role
if ( get_role('wpseo_editor') ) {
remove_role( 'wpseo_editor' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.