WPCF7_TagGeneratorGenerator::mail_tag_tipprivateCF7 1.0

Template method for a tip message about mail-tag.

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

Хуков нет.

Возвращает

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

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

// private - только в коде основоного (родительского) класса
$result = $this->mail_tag_tip( $options );
$options
.
По умолчанию: ''

Код WPCF7_TagGeneratorGenerator::mail_tag_tip() CF7 6.1.4

private function mail_tag_tip( $options = '' ) {
	$formatter = new WPCF7_HTMLFormatter();

	$formatter->append_start_tag( 'p', array(
		'class' => 'mail-tag-tip',
	) );

	$formatter->append_preformatted( sprintf(
		/* translators: %s: mail-tag corresponding to the form-tag */
		esc_html( __( 'To use the user input in the email, insert the corresponding mail-tag %s into the email template.', 'contact-form-7' ) ),
		'<strong data-tag-part="mail-tag"></strong>'
	) );

	$formatter->print();
}