Skip to content

Instantly share code, notes, and snippets.

@afragen
Created May 3, 2021 18:42
Show Gist options
  • Select an option

  • Save afragen/6f6c4b7ccb1ca83825db16b1b58f6802 to your computer and use it in GitHub Desktop.

Select an option

Save afragen/6f6c4b7ccb1ca83825db16b1b58f6802 to your computer and use it in GitHub Desktop.
If the plugin can update outside of Freemius integration, this overrides the Freemius behavior.
/**
* Remove Freemius dashboard update overrides.
*
* @return void
*/
public function allow_self_update() {
remove_all_filters( 'after_plugin_row_git-updater/git-updater.php' );
remove_all_filters( 'after_plugin_row_git-updater-pro/git-updater.php' );
add_action(
'admin_init',
function() {
remove_action( 'admin_footer', [ gu_fs(), '_add_premium_version_upgrade_selection_dialog_box' ] );
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment