wpcf7_mail_html_header хук-фильтр . CF7 1.0
Использование
add_filter( 'wpcf7_mail_html_header', 'filter_function_name_8835', 10, 2 ); function filter_function_name_8835( $html, $that ){ // filter... return $html; }
- $html
- -
- $that
- -
Где вызывается хук
wpcf7_mail_html_header
contact-form-7/includes/mail.php 80-87
$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 );