Warning: Undefined property: WP_Error::$name in /srv/users/nsp-code/apps/nsp-code/public/wp-content/themes/apto/templates/parts/category-header.php on line 15

Warning: Undefined property: WP_Error::$name in /srv/users/nsp-code/apps/nsp-code/public/wp-content/themes/apto/templates/parts/category-header.php on line 18

Filter – apto/interface_query_args

The filter allow to change arguments for the query which output the objects in a sort list. The filter send through 2 argument: $args $current_sort_view_ID The following code exclude all hidden WooCommerce products which are set to  Visibility Hidden, for a sort id 114:

Filter – apto/query_filter_valid_data

Name: apto/query_filter_valid_data Type: Filter Arguments: $query The custom sorting is implemented on the front end based on the provided query arguments. When these arguments align, the plugin engine automatically adjusts the query to deliver objects in the specified custom order. However, when the query contains differing arguments, a sorting match may not occur. That is often attributed […]