Add these snippets to your child theme’s functions.php file or use a plugin such as Code Snippets ↗. Avoid adding custom code directly to the parent theme’s functions.php file, as it will be overwritten by theme updates. Replace the values highlighted in red with your own custom values.
Add order statuses to Easy Schedule
By default, Easy Schedule uses the following WooCommerce order statuses when retrieving appointments and initializing availability:
- Pending payment
- Processing
- On hold
- Completed
- Refunded
Orders with other statuses are ignored.
If your store uses custom WooCommerce order statuses, you can include them using the following filter.
add_filter( 'nshk_easy_scheduling_get_order_statuses', 'easy_scheduling_custom_order_status', 10, 1 );
function easy_scheduling_custom_order_status( $statuses ) {
$statuses[] = 'wc-partially-paid';
return $statuses;
}