WPCF7_Mail::get_current_component_name()
Returns the name of the email template component currently processed.
Expected output: 'recipient', 'sender', 'subject', 'additional_headers', 'body', or 'attachments'
Метод класса: WPCF7_Mail{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$result = WPCF7_Mail::get_current_component_name();
Код WPCF7_Mail::get_current_component_name() WPCF7 Mail::get current component name CF7 5.9.8
public static function get_current_component_name() { $current = self::get_current(); if ( $current instanceof self ) { return $current->get_component_name(); } }