Advertisement
verygoodplugins

Untitled

Aug 23rd, 2019
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  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 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement