Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rickbenetti
Forked from joecue/functions.php
Created December 14, 2016 02:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rickbenetti/65f4fb6e6f555bdb591076242a9582f4 to your computer and use it in GitHub Desktop.
Save rickbenetti/65f4fb6e6f555bdb591076242a9582f4 to your computer and use it in GitHub Desktop.
Reset WordPress User Role Capabilities
if ( !function_exists( 'populate_roles' ) ) {
require_once( ABSPATH . 'wp-admin/includes/schema.php' );
}
populate_roles();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment