Skip to content

Instantly share code, notes, and snippets.

@mariusvetrici
Created June 17, 2015 12:44
Show Gist options
  • Save mariusvetrici/27d194d219be462d8324 to your computer and use it in GitHub Desktop.
Save mariusvetrici/27d194d219be462d8324 to your computer and use it in GitHub Desktop.
Add html comments using newly created user role
<?php
$role = add_role( 'new_role', 'My new role' );
// Add all your needed roles here and then, don't forget:
$role->add_cap( 'unfiltered_html' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment