Created
November 16, 2018 05:20
-
-
Save shaddam/97c984c2df79488d71d2f70c0b3378fa to your computer and use it in GitHub Desktop.
how to disable wordpress plugin update notification
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
| function disable_plugin_updates( $value ) { | |
| unset( $value->response['plugin_folder_name/main_plugin_file.php'] ); | |
| return $value; | |
| } | |
| add_filter( 'site_transient_update_plugins', 'disable_plugin_updates' ); | |
| example by elementor : | |
| function disable_plugin_updates( $disable_elementor_update ) { | |
| unset( $disable_elementor_update->response['elementor/elementor.php'] ); | |
| return $disable_elementor_update; | |
| } | |
| add_filter( 'site_transient_update_plugins', 'disable_plugin_updates' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment