Change Woocommerce booking status on Custom Order Status change
问题 I have some custom order statuses (made with WooCommerce Order Status Manager). But when I use a custom paid status, the booking status is not updated to "paid". I've cobbled together some code from various references but it results in a fatal error. Or maybe I am missing something where custom statuses are supposed to update the booking paid status without extra code? My code: add_action('woocommerce_order_status_pool-payment-rec','auto_change_booking_status_to_paid', 10, 1); function auto