acf_form_front::add_form()publicACF 5.5.8

add_form

description

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

Хуков нет.

Возвращает

$post_id. (int)

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

$acf_form_front = new acf_form_front();
$acf_form_front->add_form( $args );
$args **
-
По умолчанию: array()

Список изменений

С версии 5.5.8 Введена.

Код acf_form_front::add_form() ACF 6.0.4

function add_form( $args = array() ) {

	// validate
	$args = $this->validate_form( $args );

	// append
	$this->forms[ $args['id'] ] = $args;

}