1 2 3 4 5 6 7
add_action( 'woocommerce_product_query', 'crum_090616_product_query' ); function crum_090616_product_query( $query ) { if ( is_product_category() ) { $query->set( 'posts_per_page', 4 ); } }
You can clone a snippet to your computer for local editing. Learn more.