New
Latest Notes & Updates

Short thoughts, work in progress, lessons learned, & the occasional personal update.

Got a chance to attend the HighLevel Manila 2-day event!

I just realized I wasn’t able to record everything. Now I’m trying to piece together all the info I remember and the photos I have.

The insights they shared were pretty overwhelming 😅

Posted 4 days ago

I have an urgent page build using WPBakery. Although we have a 1-week deadline, I’m confident I can deliver. But seriously, at least give us a custom CSS field per widget. Even Divi has that!

I’m not really the type to rant about tools I use for work. I get that every builder is built differently. But every time I have a project using this one, it just takes so much longer than it should.

Posted 5 days ago

You know, one thing that still bugs me is not asking my old clients to leave their review on my Google Business page.

I just collected them through email or other apps. Should’ve known better 😬

Posted August 7, 2026

You know what makes doing this stuff worth it? People who still remember you and refer you even if you haven’t spoken in a long time!

Just got an inquiry! Turns out someone I spoke with 2 years ago referred them. As a small service provider, that kind of thing means a lot 🙂

Image of my recent web design & development inquiry from Australia
Posted August 4, 2026

Late night timelapse of us getting things done. I don’t know why, but I always feel more productive at night.

Also, I just recently got that standing desk, and I can’t appreciate enough how helpful it is when you’re getting older 😂

Posted July 31, 2026

Currently redesigning the website of a flooring company based in Erina, NSW.

See those long page designs? It’s still Wednesday but I guess I’m gonna be working even on the weekend 🥲

Image of my workstation redesigning the website of a flooring company based in Erina, NSW.
Posted July 28, 2026

I’m not sure if this is just me, but handling web projects + creating content at the same time is kinda stressful.

Especially when you’re working on it alone. Still grateful for it though.

Just analyzing the new project brief.
Posted July 26, 2026

Finally set up a quick way to share thoughts on my site. Not everything needs to be a full blog post.

New blog about this feature coming soon!

Posted July 23, 2026
Table of contents

YITH Booking “Exclude Products” Not Loading? Here’s the Fix

Last updated on July 31, 2026

10 mins read

Reader Disclosure

Disclosure: I may occasionally include affiliate links in my posts or pages. If you click on one of these links and make a purchase, I may receive a small commission, which helps me keep this website running and create more useful content. However, this does not affect my opinion on the product or service in any way. I only recommend products and services that I truly believe in and use myself.

Update (May 19, 2026): This bug has been fixed in version 5.32.0. If you haven’t updated yet, make sure to back up your site first before updating the plugin. Once you’re on 5.32.0 or later, you can safely remove the snippet below. Keeping this post up in case anyone is still on an older version.

I was setting up a Mother’s Day promo for a client’s website. My plan was to use the YITH WooCommerce Booking Price Rules to make things a little easier. A date-based pricing rule with a 20% discount across most rooms, with a couple of products excluded.

But when I toggled on “Exclude products” in the Price Rules settings, the dropdown just kept spinning. No products loaded. Nothing to select.

What’s Going On

After some digging, I found out the plugin is sending a bad request when it tries to load your booking products into that dropdown. It’s asking WooCommerce for a list of products but with an invalid setting that basically says “show me zero products per page.” WooCommerce doesn’t know what to do with that, so it just fails silently. That’s why the dropdown never loads.

If you open your browser console, you’ll see something like this:

Console error YITH Booking "Exclude Products" bug

The plugin is sending this request:

GET /wp-json/wc/store/products?type=booking&per_page=0&catalog_visibility=any&search=&orderby=title&order=asc&locale=user
{code: 'rest_invalid_param', message: 'Invalid parameter(s): per_page'}

This happens on both the Price Rules and Availability Rules pages whenever you try to use the “Exclude products” option. I’m on version 5.31.0 of the plugin, so if you’re seeing the same thing, that’s likely what you’re running too.

The Temporary Fix

I submitted a support ticket to YITH and they confirmed this is a known bug. A fix is coming in the next plugin update.

Here’s the snippet they provided. You’ll need to add this to your site using a code snippets plugin (I’ll explain how below):

if ( ! function_exists( 'custom_fix_store_api_per_page' ) ) {
    function custom_fix_store_api_per_page( $result, $server, $request ) {
        $route = $request->get_route();
        if ( strpos( $route, '/wc/store/products' ) !== false ) {
            $per_page = $request->get_param( 'per_page' );
            if ( ! is_null( $per_page ) && (int) $per_page === 0 ) {
                $request->set_param( 'per_page', 100 );
            }
        }
        return $result;
    }
    add_filter( 'rest_pre_dispatch', 'custom_fix_store_api_per_page', 10, 3 );
}

In plain terms, this snippet catches that bad request before it goes through and fixes the number so WooCommerce can actually return your products. Once it’s active, the dropdown loads and you can select the products you want to exclude. That’s it.

Once YITH releases the updated plugin version with the official fix, you can safely remove this snippet.

How to Add the Snippet

The easiest way is to use a free plugin called FluentSnippets. Install it from your WordPress dashboard, create a new snippet, paste the code above, and activate it. This keeps things clean and a theme update won’t wipe it out.

If you’re not sure how to do this, your web developer can add it for you in a couple of minutes. It’s a quick one.

Shoutout to YITH Support

I have to say, I was really impressed with how fast they got back to me. I submitted the ticket and they acknowledged the issue and provided a workaround right away. No back and forth. Just a quick confirmation and a working solution. That kind of support makes a big difference, especially when you’re in the middle of setting something up for a client.

Quick Recap

The “Exclude products” spinner issue in YITH Booking and Appointment is caused by a small bug in how the plugin requests your product list. YITH has acknowledged it and a permanent fix is on the way. Until then, the snippet above gets you back on track.

If you’re using YITH Booking & Appointments for a vacation rental or resort site, this is one of those small things that can hold you up when you’re trying to get something done. Glad the YITH team was quick on it.

New Service

Direct Booking Websites for Vacation Rentals

Get a direct booking website built for your vacation rental or resort. Keep more revenue and let repeat guests book with you directly.

Learn More

Leave the first comment

Related
Articles

Featured image of blog post - Getting Cited & Ranked in Google as a Bricks Developer

Just A Small Win: Getting Ranked & Cited in Google as a Bricks Developer

As a small service provider and a freelancer, I don’t have a big marketing budget.…

Read more
Featured image of WP Booking System Review post

WP Booking System Review: A Lightweight Booking Plugin for Vacation Rentals

A fair breakdown of WP Booking System, what it does well, where it falls short,…

Read more

Went to My First WP Meetup – WordPress Manila

I went to my first WordPress meetup after almost 10 years of using WP. WordPress…

Read more