changes
This commit is contained in:
@@ -26,6 +26,7 @@ class DontShowProductsOnShopLandingPageAction extends RadAction
|
|||||||
}
|
}
|
||||||
|
|
||||||
add_action('pre_get_posts', function ($query) {
|
add_action('pre_get_posts', function ($query) {
|
||||||
|
$query->set('post_type', 'product');
|
||||||
$query->set('posts_per_page', 0);
|
$query->set('posts_per_page', 0);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user