| 1 | <?php |
||||||
| 2 | |||||||
| 3 | /* |
||||||
| 4 | * Plugin Name: Disable checking for plugin updates |
||||||
| 5 | * Plugin URI: https://github.com/pothi/wordpress-mu-plugins |
||||||
| 6 | * Version: 0.1 |
||||||
| 7 | * Description: Disable checking for plugin updates while browsing through WP dashboard |
||||||
| 8 | * Author: Pothi Kalimuthu |
||||||
| 9 | * Author URI: http://pothi.info |
||||||
| 10 | * License: GPL |
||||||
| 11 | */ |
||||||
| 12 | |||||||
| 13 | remove_action( 'load-plugins.php', 'wp_update_plugins' ); |
||||||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||||||
| 14 | remove_action( 'load-update.php', 'wp_update_plugins' ); |
||||||
| 15 | remove_action( 'admin_init', '_maybe_update_plugins' ); |
||||||
| 16 | remove_action( 'wp_update_plugins', 'wp_update_plugins' ); |
||||||
| 17 | remove_action( 'load-update-core.php', 'wp_update_plugins' ); |
||||||
| 18 | |||||||
| 19 | add_filter( 'pre_transient_update_plugins', '__return_zero' ); |
||||||
|
0 ignored issues
–
show
The function
add_filter was not found. Maybe you did not declare it correctly or list all dependencies?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||||
| 20 | add_filter( 'pre_site_transient_update_plugins', '__return_zero' ); |
||||||
| 21 |