fc_pro_order_details_customer_information_show_email
Type: Filter
Filters whether order details customer information show email.
Signature
apply_filters( 'fc_pro_order_details_customer_information_show_email', $value );
Parameters
| Name | Type | Description |
|---|---|---|
$value | bool | Whether order details customer information show email. Default true. |
Since
1.3.0
Source: templates/fc-pro/order-details/order/order-details-customer.php
Examples
add_filter( 'fc_pro_order_details_customer_information_show_email',
/**
* Hide email on view order page but show on order received.
*
* @param bool $value Whether order details customer information show email. Default true.
* @return bool Filtered value.
*/
function( $value ) {
// Hide on view order page (My Account)
if ( function_exists( 'is_view_order_page' ) && is_view_order_page() ) {
return false;
}
return $value;
},
10
);