Skip to content

Instantly share code, notes, and snippets.

@beaverbuilder
Last active March 3, 2018 20:05
Show Gist options
  • Save beaverbuilder/efb3d04229dea7812e475ef671c8fba2 to your computer and use it in GitHub Desktop.
Save beaverbuilder/efb3d04229dea7812e475ef671c8fba2 to your computer and use it in GitHub Desktop.
This snippet is used on the following knowledge base article - https://kb.wpbeaverbuilder.com/article/463-customize-settings-forms
<?php // do not copy this line, start with line 3
function my_builder_register_settings_form( $form, $id ) {
if ( 'row' == $id ) {
// Modify the $form array for rows as needed.
}
elseif ( 'button' == $id ) {
// Modify the $form array for button modules as needed.
}
return $form;
}
add_filter( 'fl_builder_register_settings_form', 'my_builder_register_settings_form', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment