WPForms submit button – match Gutenberg button block

For more information, see this article: WPForms submit button match Gutenberg button style

 * WPForms submit button, match Gutenberg button block
 * @link https://www.billerickson.net/code/wpforms-submit-button-match-gutenberg-block/
function be_wpforms_match_button_block( $form_data ) {
	$form_data['settings']['submit_class'] .= ' wp-block-button__link';
	return $form_data;
add_filter( 'wpforms_frontend_form_data', 'be_wpforms_match_button_block' );

Bill Erickson

Bill Erickson is the co-founder and lead developer at CultivateWP, a WordPress agency focusing on high performance sites for web publishers.

About Me
Ready to upgrade your website?

I build custom WordPress websites that look great and are easy to manage.

Let's Talk