woocommerce_get_order_status_labels

woocommerce_get_order_status_labels

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.1

apply_filters('woocommerce_get_order_status_labels') is found 1 times:

  • /src/Internal/Admin/Orders/ListTable.php line 1127
    		 * @param array    $action Order actions.
    		 * @param WC_Order $order  Current order object.
    		 * @since 9.1.0
    		 */
    		$status_names = apply_filters( 'woocommerce_get_order_status_labels', $status_names, $order );
    
    		$status_name = $order->get_status();
    
    		return isset( $status_names[ $status_name ] ) ? $status_names[ $status_name ] : '';
    	}