Saturday, December 12, 2015

how to allow author for post video wordpress

Open up the functions.php file in your theme folder. At the top of this file add the following code:

// get the "author" role object
$role = get_role( 'author' );

// add "organize_gallery" to this role object
$role->add_cap( 'unfiltered_html' );

Basically, you are just giving the author user role access to post any kind of code they want by adding the 'unfiltered_html' capability. Just make sure that you can trust all of your authors before adding this, because without html filtering, a user could do considerable harm to your site if they decided to post some nasty javascript.

Related Posts:

  • how to allow author for post video wordpressOpen up the functions.php file in your theme folder. At the top of this file add the following code:// get the "author" role object$role = get_role( 'author' );// add "organize_gallery" to this role object$role->add_cap( '… Read More

0 comments:

Post a Comment