with the optional required marker. * * Reproduces the save() label markup exactly (class + aria-label), so the * frontend and editor render identically. * * @param string $field_id Field id the label points at. * @param string $label Label text. * @param bool $required Whether to append the required marker. * @param bool $allow_html Whether the label may contain inline HTML (RichText). * @return string Label HTML. */ function airowp_form_field_label_html( $field_id, $label, $required, $allow_html = false ) { $label_out = $allow_html ? wp_kses_post( $label ) : esc_html( $label ); $html = ''; return $html; } } if ( ! function_exists( 'airowp_form_field_help_html' ) ) { /** * Build the help-text

for a field, or an empty string when unused. * * @param string $field_id Field id (the help id is "{$field_id}-help"). * @param string $help_text Help text. * @return string Help HTML or ''. */ function airowp_form_field_help_html( $field_id, $help_text ) { if ( '' === (string) $help_text ) { return ''; } return '

' . esc_html( $help_text ) . '

'; } }