Skip to content

Instantly share code, notes, and snippets.

@mannieschumpert
Created October 9, 2014 21:01
Show Gist options
  • Save mannieschumpert/e5cec8723247f9490016 to your computer and use it in GitHub Desktop.
Save mannieschumpert/e5cec8723247f9490016 to your computer and use it in GitHub Desktop.
Remove Gravity Forms' "Add Form" button from all WYSIWYG editors
<?php
add_filter( 'gform_display_add_form_button', function(){return false;} );
@BinaryKitten
Copy link

you can replace the function with '__return_false' which does the same thing. This issue with Anonymous functions / lambdas is that they can't be opcode cached.

ending code would be:

@pixelcutlabs
Copy link

Thank you! Worked like a charm!

@gavin310
Copy link

Thanks!

@amy-turner
Copy link

Thank you. Worked simply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment