Input::html_order()
Description #
Order of HTML markup.
Source #
File: lib/form/class-input.php
protected function html_order() {
if ( 'hidden' === $this->subtype ) {
$this->output_order = array( 'wrapper_start', 'errors', 'field_markup', 'wrapper_end' );
} else {
parent::html_order();
}
// Remove label output if custom HTML.
if ( $this->get( 'html' ) && empty( $this->args['label'] ) ) {
$this->output_order = array_diff( $this->output_order, array( 'label', 'field_wrap_start', 'field_wrap_end' ) );
}
}
Expand full source code Collapse full source code View on GitHub: lib/form/class-input.php:126
Add your comment