WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Авторские Темы для WordPress
функция не описана

WPCF7_ContactFormTemplate::mail() public CF7 1.0

{} Это метод класса: WPCF7_ContactFormTemplate{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$result = WPCF7_ContactFormTemplate::mail();

Код WPCF7_ContactFormTemplate::mail() CF7 5.4.1

<?php
public static function mail() {
	$template = array(
		'subject' => sprintf(
			/* translators: 1: blog name, 2: [your-subject] */
			_x( '%1$s "%2$s"', 'mail subject', 'contact-form-7' ),
			'[_site_title]',
			'[your-subject]'
		),
		'sender' => sprintf(
			'%s <%s>',
			'[_site_title]',
			self::from_email()
		),
		'body' =>
			sprintf(
				/* translators: %s: [your-name] <[your-email]> */
				__( 'From: %s', 'contact-form-7' ),
				'[your-name] <[your-email]>'
			) . "\n"
			. sprintf(
				/* translators: %s: [your-subject] */
				__( 'Subject: %s', 'contact-form-7' ),
				'[your-subject]'
			) . "\n\n"
			. __( 'Message Body:', 'contact-form-7' )
			. "\n" . '[your-message]' . "\n\n"
			. '-- ' . "\n"
			. sprintf(
				/* translators: 1: blog name, 2: blog URL */
				__( 'This e-mail was sent from a contact form on %1$s (%2$s)', 'contact-form-7' ),
				'[_site_title]',
				'[_site_url]'
			),
		'recipient' => '[_site_admin_email]',
		'additional_headers' => 'Reply-To: [your-email]',
		'attachments' => '',
		'use_html' => 0,
		'exclude_blank' => 0,
	);

	return $template;
}