Skip to content

Instantly share code, notes, and snippets.

@de-raaf-media
Created October 29, 2012 15:48
Show Gist options
  • Save de-raaf-media/3974293 to your computer and use it in GitHub Desktop.
Save de-raaf-media/3974293 to your computer and use it in GitHub Desktop.
Wordpress functions
// get the the role object
$role_object = get_role( 'editor' );
// add $cap capability to this role object
$role_object->add_cap( 'edit_theme_options' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment