Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $current_user = get_current_user_id();
- if($current_user) $current_user_is_vendor = is_user_wcmp_vendor($current_user);
- if($current_user_is_vendor) {
- $vendor = get_wcmp_vendor_by_term(get_user_meta( $current_user, '_vendor_term_id', true ));
- $term_id = $vendor->term_id;
- }
Add Comment
Please, Sign In to add comment