Created
September 20, 2017 00:59
-
-
Save bryanrsebastian/bccce22000cdb6312b2062f73bd65763 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 | |
/** | |
* Disable Gravity Form Post Creation | |
*/ | |
function disable_post_creation( $is_disabled, $form, $entry ) { | |
return true; | |
} | |
add_filter( 'gform_disable_post_creation', 'disable_post_creation', 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment