'text', ); } protected function render_data_attributes( $data_attributes ) { $attr_string = ''; foreach ( $data_attributes as $name => $value ) { $attr_string = ' data-' . esc_html( $name ) . '="' . esc_attr( $value ) . '"'; } echo $attr_string; } protected function render_field( $value, $instance ) { ?> render_data_attributes( $this->get_input_data_attributes() ) ?> render_CSS_classes( $this->get_input_classes() ) ?> placeholder ) ) echo 'placeholder="' . esc_attr( $this->placeholder ) . '"' ?> readonly ) ) echo 'readonly' ?> />