WPCF7_Mail::replace_tags()publicCF7 1.0

Replaces mail-tags within the given text.

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

Хуков нет.

Возвращает

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

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

$WPCF7_Mail = new WPCF7_Mail();
$WPCF7_Mail->replace_tags( $content, $args );
$content (обязательный)
-
$args **
-
По умолчанию: ''

Код WPCF7_Mail::replace_tags() CF7 5.9.3

public function replace_tags( $content, $args = '' ) {
	if ( true === $args ) {
		$args = array( 'html' => true );
	}

	$args = wp_parse_args( $args, array(
		'html' => false,
		'exclude_blank' => false,
	) );

	return wpcf7_mail_replace_tags( $content, $args );
}