W3cubDocs

/WordPress

WP_Customize_Control::input_attrs()

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

Source

File: wp-includes/class-wp-customize-control.php

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

Changelog

Version Description
4.0.0 Introduced.

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