Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created April 11, 2019 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/a429b32da2707cc2f125e8aebaa9af2c to your computer and use it in GitHub Desktop.
Save billerickson/a429b32da2707cc2f125e8aebaa9af2c to your computer and use it in GitHub Desktop.
<?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