Form::__construct( string $form_name, array $args )
Description #
Initialize the class.
Parameters #
- $form_namestring (Required) Name of form.
- $argsarray (Required) Arguments for form.
Source #
File: lib/class-form.php
public function __construct( $form_name, $args ) { $this->form_name = $form_name; $this->args = wp_parse_args( $args, array( 'form_tag' => true, 'submit_button' => true, 'submit_label' => __( 'Submit', 'anspress-question-answer' ), 'editing' => false, 'editing_id' => 0, ) ); $this->editing = $this->args['editing']; $this->editing_id = $this->args['editing_id']; }
Expand full source code Collapse full source code View on GitHub: lib/class-form.php:101
Add your comment