Disable plugin update notification in wordpress

Add below code on your current theme's functions.php and add plugin base file name under unset.
add_filter( 'site_transient_update_plugins', 'remove_wp_update_notifications' );
function remove_wp_update_notifications( $value ){    
    if ( isset( $value ) && is_object( $value ) ){
        unset( $value->response[ 'hello.php' ] ); 
        unset( $value->response[ 'js_composer/js_composer.php' ] ); 
    }
    return $value;
}

Comments

Popular posts from this blog

Creating Protected routes in ReactJS

Redirect http to https in codeigniter