Last active
September 5, 2016 05:11
-
-
Save spivurno/8481532 to your computer and use it in GitHub Desktop.
Remove Gravity Forms Update Checks
This file contains hidden or 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 | |
| /** | |
| * Remove Gravity Forms Update Check | |
| */ | |
| add_action( 'init', 'gform_remove_update_check', 11 ); | |
| function gform_remove_update_check() { | |
| remove_filter( 'transient_update_plugins', array( 'RGForms', 'check_update' ) ); | |
| remove_filter( 'site_transient_update_plugins', array( 'RGForms', 'check_update' ) ); | |
| remove_filter( 'transient_update_plugins', array( 'GFForms', 'check_update' ) ); | |
| remove_filter( 'site_transient_update_plugins', array( 'GFForms', 'check_update' ) ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks @spivurno
Please consider this:
You got in the GF code:
change that to:
Please keep the assets protocol agnostic!
Add these to the gravityforms.php header to allow translations to be applied to the listing on plugins.php: