Group::prepare()

Description #

Prepare field.

Source #

File: lib/form/class-group.php

	protected function prepare() {
		$this->args = wp_parse_args(
			$this->args,
			array(
				'label'         => __( 'AnsPress Group Field', 'anspress-question-answer' ),
				'toggleable'    => false,
				'delete_button' => false, // Used for repeatable fields.
			)
		);

		$this->child = new Form( $this->form_name, $this->args );
		$this->child->prepare();

		// Call parent prepare().
		parent::prepare();
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment