WPCF7_Mail::get_current_template_name()public staticCF7 1.0

Returns the name of the email template currently processed.

Expected output: 'mail' or 'mail_2'

Метод класса: WPCF7_Mail{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$result = WPCF7_Mail::get_current_template_name();

Код WPCF7_Mail::get_current_template_name() CF7 5.9.8

public static function get_current_template_name() {
	$current = self::get_current();

	if ( $current instanceof self ) {
		return $current->get_template_name();
	}
}