Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( "wcfmapi_rest_product_object_query", function( $args, $request ) {
- if( isset( $request['category__in'] ) ) {
- $args['category__in'] = explode( ',', $request['category__in'] );
- }
- return $args;
- }, 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement