WooCommerce

Exclude products from a particular category on the shop page
add_action( 'pre_get_posts', 'custom_pre_get_posts_query' ); function custom_pre_get_posts_query( $q ) { if ( ! $q->is_main_query...
Mon, 15 May, 2017 at 11:19 AM
WooCommerce Custom Sorting Options (asc/desc)
add_filter( 'woocommerce_get_catalog_ordering_args', 'custom_woocommerce_get_catalog_ordering_args' ); function custom_woocommerce_get_cata...
Mon, 15 May, 2017 at 3:34 PM
Remove WooCommerce Related Products
Add the following code at the end of your functions.php file located in our child theme ( so it will not be lost when you update our theme ). remove_act...
Mon, 15 May, 2017 at 3:36 PM
Renamed Add To Cart
add_filter( 'woocommerce_product_add_to_cart_text' , 'custom_woocommerce_product_add_to_cart_text' ); /** * custom_woocommerce_template_l...
Mon, 15 May, 2017 at 3:37 PM