Created
October 9, 2014 21:01
-
-
Save mannieschumpert/e5cec8723247f9490016 to your computer and use it in GitHub Desktop.
Remove Gravity Forms' "Add Form" button from all WYSIWYG editors
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 | |
add_filter( 'gform_display_add_form_button', function(){return false;} ); |
Thank you! Worked like a charm!
Thanks!
Thank you. Worked simply.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: