On this page
WP_Customize_Control::input_attrs()
Render the custom attributes for the control’s input element.
Source
File: wp-includes/class-wp-customize-control.php. View all references
public function input_attrs() {
foreach ( $this->input_attrs as $attr => $value ) {
echo $attr . '="' . esc_attr( $value ) . '" ';
}
}
Related
Uses
| Uses | Description |
|---|---|
| esc_attr() wp-includes/formatting.php | Escaping for HTML attributes. |
Used By
| Used By | Description |
|---|---|
| WP_Customize_Control::render_content() wp-includes/class-wp-customize-control.php | Render the control’s content. |
Changelog
| Version | Description |
|---|---|
| 4.0.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_control/input_attrs