Skip to content

Instantly share code, notes, and snippets.

@spivurno
Last active September 5, 2016 05:11
Show Gist options
  • Select an option

  • Save spivurno/8481532 to your computer and use it in GitHub Desktop.

Select an option

Save spivurno/8481532 to your computer and use it in GitHub Desktop.
Remove Gravity Forms Update Checks
<?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' ) );
}
@cfoellmann
Copy link
Copy Markdown

Thanks @spivurno

Please consider this:

You got in the GF code:

<style type="text/css">
    @import url('http://fonts.googleapis.com/css?family=Shadows+Into+Light+Two');
</style

change that to:

<style type="text/css">
    @import url('//fonts.googleapis.com/css?family=Shadows+Into+Light+Two');
</style

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:

Text Domain: gravityforms
Domain Path: /languages

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