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();
}
Expand full source code Collapse full source code View on GitHub: lib/form/class-group.php:48
Add your comment