WPForms: swap price and option value for payment fields
add_filter( ‘wpforms_html_field_value’, function ( $value, $field, $form_data, $context ) { if ( ’email-html’ !== $context ) { return $value; } $form_id = (int) $form_data[‘id’]; // For a specific form. // REMOVE IF NEEDED FOR ALL FORMS. if ( 1 !==…Continue reading