fauzanjeg

Paywall Unaffected Role List

Feb 2nd, 2021 (edited)
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. /* Paywall Unaffected Role List */
  2. function paywall_unaffected_role_list( $roles ) {
  3.     $new_role_list = array( 'author', 'editor' );
  4.     return array_merge( $roles, $new_role_list );
  5. }
  6. add_filter( 'jnews_paywall_unaffected_role_list', 'paywall_unaffected_role_list' );
Add Comment
Please, Sign In to add comment