Documentation

Add these snippets to your child theme’s functions.php file or use a plugin like Code snippets. Don’t add code directly to the parent theme’s functions.php file as it will be overridden by updates. Customize the texts/values in red to whatever you need.

Add custom order status to Easy Booking

By default, Easy Booking uses the following status: pending, processing, on hold, completed, refunded. If you have other order statuses, you need to add them using this filter.

add_filter( 'easy_booking_get_order_statuses', 'wceb_custom_order_status', 10, 1 );

function wceb_custom_order_status( $statuses ) {
    $statuses[] = 'wc-partially-paid';
    return $statuses;
}

Add custom imports column

Adding a “Customer” column at the beginning.

add_filter( 'easy_booking_custom_import_columns', 'wceb_custom_import_column', 10, 1 );

function wceb_custom_import_column( $columns ) {

    $columns[] = array(
        'id'       => 'customer',
        'name'     => __( 'Customer', 'easy-booking-pro' ),
        'position' => 0,
    );

    return $columns;

}