woocommerce_allow_send_queued_transactional_email

Init the mailer instance and call the notifications for the current filter.

Description

apply_filters( 'woocommerce_allow_send_queued_transactional_email', (bool) $true, (unknown) $filter, (unknown) $args ); 

Parameters (3)

0. $true (bool) => true
The true.
1. $filter (unknown)
The filter.
2. $args (unknown)
The args.

Usage

To run the hook, copy the example below.
  1. $true = apply_filters( 'woocommerce_allow_send_queued_transactional_email', $true, $filter, $args ); 
  2.  
  3. if ( !empty( $true ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the woocommerce_allow_send_queued_transactional_email callback 
  2. function filter_woocommerce_allow_send_queued_transactional_email( $true, $filter, $args ) { 
  3. // make filter magic happen here... 
  4. return $true
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'woocommerce_allow_send_queued_transactional_email', 'filter_woocommerce_allow_send_queued_transactional_email', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'woocommerce_allow_send_queued_transactional_email', 'filter_woocommerce_allow_send_queued_transactional_email', 10, 3 ); 

Defined (1)

The filter is defined in the following location(s).

/includes/class-wc-emails.php  
  1. if ( apply_filters( 'woocommerce_allow_send_queued_transactional_email', true, $filter, $args ) ) {