woocommerce_defer_transactional_emails
Использование
add_filter( 'woocommerce_defer_transactional_emails', 'wp_kama_woocommerce_defer_transactional_emails_filter' ); /** * Function for `woocommerce_defer_transactional_emails` filter-hook. * * @param $false * * @return */ function wp_kama_woocommerce_defer_transactional_emails_filter( $false ){ // filter... return $false; }
- $false
- -
Где вызывается хук
woocommerce_defer_transactional_emails
woocommerce/includes/class-wc-emails.php 109
if ( apply_filters( 'woocommerce_defer_transactional_emails', false ) ) {