rimpa

vendor term ID

Jun 29th, 2016
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. $current_user = get_current_user_id();
  2. if($current_user) $current_user_is_vendor = is_user_wcmp_vendor($current_user);
  3. if($current_user_is_vendor) {
  4. $vendor = get_wcmp_vendor_by_term(get_user_meta( $current_user, '_vendor_term_id', true ));
  5. $term_id = $vendor->term_id;
  6. }
Add Comment
Please, Sign In to add comment