Field::wrapper_start()
Description #
Form field wrapper start.
Source #
File: lib/form/class-field.php
protected function wrapper_start() { $wrapper = $this->get( 'wrapper', array() ); if ( false !== $wrapper ) { $errors = $this->have_errors() ? ' ap-have-errors' : ''; $this->add_html( '<div class="ap-form-group ap-field-' . $this->id() . ' ap-field-type-' . esc_attr( $this->type ) . $errors . ' ' . esc_attr( $this->get( 'wrapper.class', '' ) ) . '"' . $this->get_attr( $this->get( 'wrapper.attr' ) ) . '>' ); } }
Expand full source code Collapse full source code View on GitHub: lib/form/class-field.php:482
Add your comment