Guest User

Untitled

a guest
Feb 6th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. function custom_product_shortcode() {
  2.  
  3. global $product;
  4. $id = $product->id;
  5. if($id==2895){
  6. echo "".do_shortcode('[we_calendar defaultdate="" cat="SHORTCODE"]');
  7. }
  8. }
  9. add_action( 'woocommerce_product_thumbnails', 'custom_product_shortcode', 9);
Advertisement
Add Comment
Please, Sign In to add comment