AI Summary
Description
The wpforms_emails_mailer_get_from_name
filter allows you to customize the “From” name used in WPForms emails. For example, you may want to replace the site name with a brand name or a specific label for certain email templates.
You can use this filter to overwrite Stripe’s default appearance object. Options follow Stripe’s Elements Appearance API, so you can adjust colors, fonts, and layout to match your site.
parameter | type | description |
---|---|---|
$appearance | array | The Stripe Payment Element appearance settings. |
Source
wpforms\src\Integrations\Stripe\Api\PaymentIntents.php
Example
// Change Stripe Payment Element to use floating labels and a custom theme.
function wpf_stripe_payment_element_appearance() {
return [
'theme' => 'stripe',
'labels' => 'floating',
'variables' => [
'colorPrimary' => '#EFC078',
'colorText' => '#ffffff',
'borderRadius' => '8px',
],
];
}
add_filter(
'wpforms_integrations_stripe_api_payment_intents_set_element_appearance',
'wpf_stripe_payment_element_appearance'
);