Advertisement
verygoodplugins

Untitled

Apr 3rd, 2020
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. function maybe_skip_import( $user_meta, $contact_id ) {
  2.  
  3.     $tags = wp_fusion()->crm->get_tags( $contact_id );
  4.  
  5.     if ( in_array( 'No Import', $tags ) ) {
  6.         return null;
  7.     }
  8.  
  9.     return $user_meta;
  10.  
  11. }
  12.  
  13. add_filter( 'wpf_import_user', 'maybe_skip_import', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement