Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function is_user_allow_access_frontend_submit() {
- $value = false;
- if ( in_array( 'editor', wp_get_current_user()->roles ) || in_array( 'author', wp_get_current_user()->roles ) || in_array( 'administrator', wp_get_current_user()->roles ) ) {
- $value = true;
- }
- return $value;
- }
- add_filter( 'jnews_frontend_submit_user_subscription', 'is_user_allow_access_frontend_submit' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement