Skip to main content

fc_pro_order_pay_should_display_substep_shipping_address

Type: Filter

Filters the order pay should display substep shipping address.

Signature​

apply_filters( 'fc_pro_order_pay_should_display_substep_shipping_address', $should_render, $order, $context );

Parameters​

NameTypeDescription
$should_rendermixedThe should render.
$order\WC_OrderOrder object.
$contextstringContext in which the check runs, such as order-pay or order-received.

Since​

  • 3.0.0

Source: inc/order-pay-page.php

Examples​

add_filter( 'fc_pro_order_pay_should_display_substep_shipping_address',
/**
* Hide shipping substep on order pay page.
*
* @param mixed $should_render The should render.
* @param \WC_Order $order Order object.
* @param string $context Context in which the check runs, such as order-pay or order-received.
* @return mixed Filtered value.
*/
function( $should_render, $order, $context ) {
return false;
},
10,
3
);