Pages

Friday, March 1, 2013

Disable plugin upgrade warning in wordpress?

If you want to disabled plugin upgrade warning from admin pane than please add below wordpress hook into your functions.php file



function filter_plugin_updates( $value ) {
    unset( $value->response['PLUGIN-DIR/MAIN-PLUGINFILE-NAME'] );
    return $value;
}
add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' );

EX:



function filter_plugin_updates( $value ) {
    unset( $value->response['all-in-one-seo-pack/all_in_one_seo_pack.php'] );
    return $value;
}
add_filter( 'site_transient_update_plugins', 'filter_plugin_updates' );

No comments: