WPCF7_ContactForm::copy()publicCF7 1.0

Makes a copy of this contact form.

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

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

Возвращает

WPCF7_ContactForm. New contact form object.

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

$WPCF7_ContactForm = new WPCF7_ContactForm();
$WPCF7_ContactForm->copy();

Код WPCF7_ContactForm::copy() CF7 5.7.3

public function copy() {
	$new = new self;
	$new->title = $this->title . '_copy';
	$new->locale = $this->locale;
	$new->properties = $this->properties;

	return apply_filters( 'wpcf7_copy', $new, $this );
}