$attr ) { $label_text = ucfirst( preg_replace( '/[_-]/m', ' ', $input_id ) ); $label = str_pad( esc_html( $label_text ), 18, ' ' ); $value = isset( $attr['value'] ) ? esc_html( $attr['value'] ) : ''; // Output the formatted label and value echo esc_html( $label . ': ' . $value ) . "\n"; } }