Skip to main content

fc_pro_order_received_failed_display_action_orders

Type: Filter

Filters whether to display order received failed display action orders.

Signature​

apply_filters( 'fc_pro_order_received_failed_display_action_orders', $display );

Parameters​

NameTypeDescription
$displayboolWhether to display order received failed display action orders. Default true.

Since​

  • 1.3.0

Source: templates/fc-pro/order-received/checkout/order-received-failed.php

Examples​

add_filter( 'fc_pro_order_received_failed_display_action_orders',
/**
* Hide My orders button on failed order pages.
*
* @param bool $display Whether to display order received failed display action orders. Default true.
* @return bool Filtered value.
*/
function( $display ) {
return false;
},
10
);