Skip to content

Instantly share code, notes, and snippets.

@Kaiderella
Created April 21, 2020 02:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kaiderella/749abf5364c5784c5f7061c9b861a1e2 to your computer and use it in GitHub Desktop.
Save Kaiderella/749abf5364c5784c5f7061c9b861a1e2 to your computer and use it in GitHub Desktop.
Loại bỏ tính năng Showing all x results trong theme Storefront
add_action( 'init', 'wpcb_delay_remove_result_count' );
function wpcb_delay_remove_result_count() {
remove_action( 'woocommerce_after_shop_loop', 'woocommerce_result_count', 20 );
remove_action( 'woocommerce_before_shop_loop', 'woocommerce_result_count', 20 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment