verygoodplugins

Untitled

Apr 19th, 2021 (edited)
333
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function add_community_membership_access_tags( $user_id, $tags_applied ) {
  2.  
  3.     if ( in_array( 'Tag Number One', $tags_applied ) || in_array( 'First Login', $tags_applied ) ) {
  4.         wp_fusion()->user->apply_tags( array( 'Community Membership', 'Community Group' ), $user_id );
  5.     }
  6.  
  7. }
  8. add_action( 'wpf_tags_applied', 'add_community_membership_access_tags', 10, 2 );
RAW Paste Data