WP_Customize_Control::input_attrs()
- Since
- 4.0.0
- Source
wp-includes/class-wp-customize-control.php:475
Renders the custom attributes for the control's input element.
Uses · 1
- esc_attr()Escaping for HTML attributes.
Used by · 1
- WP_Customize_Control::render_content()Renders the control's content.
Source
public function input_attrs() { foreach ( $this->input_attrs as $attr => $value ) { echo $attr . '="' . esc_attr( $value ) . '" '; } }History
Introduced in 4.0.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, from
src/wp-includes/class-wp-customize-control.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.