daily pastebin goal
33%
SHARE
TWEET

Untitled

verygoodplugins Feb 13th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_shortcode( 'alt_update_tags', 'wpf_alt_update_tags' );
  2.  
  3. function wpf_alt_update_tags() {
  4.    
  5.     $contact_id = wp_fusion()->user->get_contact_id();
  6.     $tags = wp_fusion()->crm->get_tags( $contact_id );
  7.  
  8.     update_user_meta( get_current_user_id(), wp_fusion()->crm->slug . '_tags', $tags );
  9.  
  10. }
RAW Paste Data
Top