Created
May 3, 2021 18:42
-
-
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.
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
| /** | |
| * 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