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

WPCF7_ContactForm::get_template() public CF7 1.0

Returns a contact form data filled by default template contents.

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

Хуки из метода

Возвращает

WPCF7_ContactForm. A new contact form object.

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

$result = WPCF7_ContactForm::get_template( $args );
$args(строка|массив)
Contact form options.
По умолчанию: ''

Код WPCF7_ContactForm::get_template() CF7 5.5.4

public static function get_template( $args = '' ) {
	$args = wp_parse_args( $args, array(
		'locale' => '',
		'title' => __( 'Untitled', 'contact-form-7' ),
	) );

	$locale = $args['locale'];
	$title = $args['title'];

	if ( ! $switched = wpcf7_load_textdomain( $locale ) ) {
		$locale = determine_locale();
	}

	$contact_form = new self;
	$contact_form->title = $title;
	$contact_form->locale = $locale;

	$properties = $contact_form->get_properties();

	foreach ( $properties as $key => $value ) {
		$default_template = WPCF7_ContactFormTemplate::get_default( $key );

		if ( isset( $default_template ) ) {
			$properties[$key] = $default_template;
		}
	}

	$contact_form->properties = $properties;

	$contact_form = apply_filters( 'wpcf7_contact_form_default_pack',
		$contact_form, $args
	);

	if ( $switched ) {
		wpcf7_load_textdomain();
	}

	self::$current = $contact_form;

	return $contact_form;
}