1. Home
  2. Custom Order Status for WooCommerce
  3. Hooks: Action and Filter reference

Hooks: Action and Filter reference

The following is a list of all hooks present in the plugin. This list is intended to guide developers who are looking to extend the functionality of Custom Order Status plugin.

How to hide the Billing/shipping address from the email when we use {order_details} shortcode in the Email Content for Custom Order Status rule?

Hook:
alg_orders_custom_statuses_address_details_in_emails :

Usage:

add_filter( 'alg_orders_custom_statuses_address_details_in_emails', 'alg_orders_custom_statuses_address_details_in_emails_callback' );

Parameters: None

Example:

add_filter( 'alg_orders_custom_statuses_address_details_in_emails', 'alg_orders_custom_statuses_address_details_in_emails_callback' ); 
function alg_orders_custom_statuses_address_details_in_emails_callback() { 
return false; 
}

Was this article helpful to you? Yes No

How can we help?