Advertisement
adam_42

vendor_tag_id

Apr 8th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.44 KB | None | 0 0
  1. /*From the plugin woocommerce product vendors' file woocommerce-product-vendors-functions.php line 73 forward the function get_vendor I deducted that I by calling the global $wc_products_vendors I might be able to gain the tag_id by * doing so:
  2. */
  3. global $wc_products_vendors;
  4.  
  5. $vendor = get_term( $user_id, $wc_product_vendors->token );
  6. $tag_id = $vendor->term_id;
  7.  
  8. /*
  9. * but I get no response on $tag_id...
  10. * Any suggestions ? please!
  11. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement