Advertisement
arie_cristianD

adding roles who can acess the premium content

Feb 26th, 2024
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  1. /* adding roles who can acess the premium content  */
  2. add_filter(
  3.     'jnews_paywall_unaffected_role_list',
  4.     function ( $roles ) {
  5.         $roles = array( 'administrator', 'editor', 'author' );
  6.         return $roles;
  7.     }
  8. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement