W3cubDocs

/WordPress

WP_Customize_Control::input_attrs()

Render the custom attributes for the control’s input element.

Source

public function input_attrs() {
	foreach ( $this->input_attrs as $attr => $value ) {
		echo $attr . '="' . esc_attr( $value ) . '" ';
	}
}

Changelog

Version Description
4.0.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_control/input_attrs