Advertisement
sparkweb

FoxyShop: allproducts shortcode

Apr 18th, 2014
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. add_shortcode('allproducts', 'my_foxyshop_allproducts_shortcode');
  2. function my_foxyshop_allproducts_shortcode($atts, $content = null) {
  3.     global $foxyshop_category_slug;
  4.  
  5.     ob_start();
  6.     foxyshop_include('all-products-shortcode');
  7.     $write = ob_get_contents();
  8.     ob_end_clean();
  9.     return $write;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement