Advertisement
verygoodplugins

Untitled

Sep 3rd, 2019
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. function wpdc_custom_check_user_membership( $user_id, $user ) {
  2.     if ( ! wp_fusion()->user->has_tag( 'active-member', $user_id  ) {
  3.         wp_safe_redirect( home_url() );
  4.         exit;
  5.     }
  6. }
  7.  
  8. add_action( 'wpdc_sso_provider_before_sso_redirect', 'wpdc_custom_check_user_membership', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement