Advertisement
verygoodplugins

Untitled

Sep 3rd, 2019
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. function wpf_custom_access( $can_access, $user_id, $post_id ) {
  2.    
  3.     if ( wp_fusion()->user->has_tag( 'Cancelled Member', $user_id ) ) {
  4.         return false;
  5.     } else {
  6.         return $can_access;
  7.     }
  8.  
  9. }
  10.  
  11. add_filter( 'wpf_user_can_access', 'wpf_custom_access', 10, 3 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement