Skip to main content

fc_pro_order_received_notice_alert_payment_methods_statuses

Type: Filter

Filters the statuses for order received notice alert payment methods.

Signature​

apply_filters( 'fc_pro_order_received_notice_alert_payment_methods_statuses', $statuses );

Parameters​

NameTypeDescription
$statusesarrayOrder statuses.

Since​

  • 1.3.0

Source: inc/order-received-page.php

Examples​

add_filter( 'fc_pro_order_received_notice_alert_payment_methods_statuses',
/**
* Add custom payment method to alert list.
*
* @param array $statuses Order statuses.
* @return array Filtered value.
*/
function( $statuses ) {
$statuses['custom_payment_gateway'] = array( 'pending', 'on-hold' );
return $statuses;
},
10
);