woocommerce_email_settings_before
Action hook fired before displaying email settings.
Использование
add_action( 'woocommerce_email_settings_before', 'wp_kama_woocommerce_email_settings_before_action' );
/**
* Function for `woocommerce_email_settings_before` action-hook.
*
* @param string $email The email object
*
* @return void
*/
function wp_kama_woocommerce_email_settings_before_action( $email ){
// action...
}
- $email(строка)
- The email object
Где вызывается хук
woocommerce_email_settings_before
woocommerce/includes/emails/class-wc-email.php 1638
do_action( 'woocommerce_email_settings_before', $this );