For our customization want to remove woocommerce pagination programmatically then place the following snippet in functions.php within your theme folder!.

remove_action( 'woocommerce_after_shop_loop', 'woocommerce_pagination', 10 );

Have any doubt, then comment here!

4 Comments on Remove woocommerce pagination programmatically in WordPress

    • do you want to pull all the products?, if yes then add the following code in your functions.php file located in your theme folder.

      add_filter( 'loop_shop_per_page', 'new_loop_shop_per_page', 20 );
      function new_loop_shop_per_page( $cols ) {
        // $cols contains the current number of products per page based on the value stored on Options -> Reading
        // Return the number of products you wanna show per page.
        $cols = 100;
        return $cols;

      If still you have an issue then contact me. 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *