Some custom post types. I’m not using WooCommerce.
Won’t this return false if WooCommerce plugin isn’t active?
public function override_woocommerce_products($override, $wp_query, $taxonomy, $term_id, $type){
return is_plugin_active('woocommerce/woocommerce.php')
&& $type==='product'
&& $wp_query->query_vars['orderby']==='meta_value';
}
Called from lin 211 in class-reorder-post-within-categories.php:
$this->loader->add_filter('rpwc2_allow_custom_sort_orderby_override', $plugin_public, 'override_woocommerce_products', 1, 5);
Which causes is_ranked to be set to false at line 260 in class-reorder-post-within-categories-public.php
-
This reply was modified 3 years, 1 month ago by rodskagg.
-
This reply was modified 3 years, 1 month ago by rodskagg.