-
-
Save billerickson/a429b32da2707cc2f125e8aebaa9af2c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* WPForms submit button, match Gutenberg button block | |
* @see 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' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment