Posts_per_page also added to the has-trail-product filter
authorLaury GvR <laury@gaslightmedia.com>
Wed, 17 May 2017 20:09:45 +0000 (16:09 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 17 May 2017 20:09:45 +0000 (16:09 -0400)
functions.php

index 3e2958d..14dd004 100644 (file)
@@ -276,6 +276,7 @@ add_filter('glm-has-trail-product', function($member_id) {
         array(
             'post_status' => 'publish',
             'post_type' => 'product',
+            'posts_per_page'    => -1
 //            'meta_query' => array(
 //                array(
 //                  'key'   => 'trail_id',