Back to list of all filter and action hooks for Fluid Checkout PRO.
Description #
This filter allows you to modify the order statuses display configuration, including their labels, types, and other display properties.
Parameters #
$statuses_args(array) Array of order status arguments for display.$order(WC_Order) The order object.
Example #
/**
* Customize order status labels
*/
function customize_order_status_labels( $statuses_args, $order ) {
// Change the label for pending status
if ( isset( $statuses_args['wc-pending'] ) ) {
$statuses_args['wc-pending']['label'] = __( 'Awaiting Payment', 'text-domain' );
}
// Change the label for processing status
if ( isset( $statuses_args['wc-processing'] ) ) {
$statuses_args['wc-processing']['label'] = __( 'Being Prepared', 'text-domain' );
}
// Change the label for completed status
if ( isset( $statuses_args['wc-completed'] ) ) {
$statuses_args['wc-completed']['label'] = __( 'Successfully Delivered', 'text-domain' );
}
return $statuses_args;
}
add_filter( 'fc_pro_order_details_order_statuses_display', 'customize_order_status_labels', 10, 2 );
