Advertisement
verygoodplugins

Untitled

Jul 2nd, 2020
882
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. function my_check_tags( $apply_tags, $order ) {
  2.  
  3.     if ( wpf_has_tag( 'Purchased evaluation', $order->get_user_id() ) ) {
  4.  
  5.         $new_tag_id = wpf_get_tag_id( '2nd evaluation bought' );
  6.  
  7.         $apply_tags[] = $new_tag_id;
  8.  
  9.     }
  10.  
  11.     return $apply_tags;
  12.  
  13. }
  14.  
  15. add_filter( 'wpf_woocommerce_apply_tags_checkout', 'my_check_tags', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement