Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if( ! function_exists( 'sportexx_cl_add_filter_to_offset_products_query' ) ) {
- function sportexx_cl_add_filter_to_offset_products_query() {
- add_filter( 'woocommerce_shortcode_products_query', 'sportexx_cl_add_offset_to_products_query', 10, 2 );
- }
- }
- if( ! function_exists( 'sportexx_cl_remove_filter_to_offset_products_query' ) ) {
- function sportexx_cl_remove_filter_to_offset_products_query() {
- remove_filter( 'woocommerce_shortcode_products_query', 'sportexx_cl_add_offset_to_products_query', 10, 2 );
- }
- }
- if( ! function_exists( 'sportexx_cl_add_offset_to_products_query' ) ) {
- function sportexx_cl_add_offset_to_products_query( $args, $atts ) {
- $args['offset'] = 8 ;
- return $args;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement