Last active
December 13, 2023 10:11
-
-
Save amboutwe/e7bd3efda988ed92452687ae7c3f1e63 to your computer and use it in GitHub Desktop.
Yoast SEO user roles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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