SHARE
TWEET

Untitled

verygoodplugins Aug 23rd, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function my_wpf_tags_filter( $apply_tags, $user_id, $contact_id, $form_id ) {
  2.  
  3.     foreach ( $apply_tags as $i => $tag ) {
  4.  
  5.         if ( $tag == 'Je peux recruter d\'autres volontaires' ) {
  6.  
  7.             $apply_tags[ $i ] = 'Recruiter';
  8.  
  9.         } elseif ( $tag == 'Je peux m\'impliquer dans des actions de campagne' ) {
  10.  
  11.             $apply_tags[ $i ] = 'Volunteer';
  12.  
  13.         } elseif ( $tag == 'Je peux passer des coups de fil' ) {
  14.  
  15.             $apply_tags[ $i ] = 'Caller';
  16.  
  17.         }
  18.  
  19.     }
  20.  
  21.     return $apply_tags;
  22.  
  23. }
  24.  
  25. add_filter( 'wpf_forms_apply_tags', 'my_wpf_tags_filter', 10, 4 );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top