wpcf7_mail_html_header
Использование
add_filter( 'wpcf7_mail_html_header', 'wp_kama_wpcf7_mail_html_header_filter', 10, 2 ); /** * Function for `wpcf7_mail_html_header` filter-hook. * * @param $html * @param $that * * @return */ function wp_kama_wpcf7_mail_html_header_filter( $html, $that ){ // filter... return $html; }
- $html
- -
- $that
- -
Где вызывается хук
contact-form-7/includes/mail.php 202-211
$header = apply_filters( 'wpcf7_mail_html_header', '<!doctype html> <html xmlns="http://www.w3.org/1999/xhtml"' . $lang_atts . '> <head> <title>' . esc_html( $this->get( 'subject', true ) ) . '</title> </head> <body> ', $this );