[REQ] Webcraftic Disable Admin Notices

miyojin

Well-known member
Trusted Uploader
Oct 9, 2018
293
369
63
Hello Guys,

This is a great plugin. Would you care to share if you have the pro version?


If you have un-nulled fresh version, please send and I'll try null the plugin.

Thanks
 

protomaster

Member
Feb 15, 2021
73
11
8
hi all. any free plugin to disable update and admin notifications would be great. the plugin from webcraftic is hard to find:(
 

kaas

New member
Nov 10, 2020
4
4
3
As an alternative, you can create a TamperMonkey script for your browser to remove those annoying notices yourself.
Just update or add the @include variables.
Inspect any other elements with your browser to get id's or classnames to remove.

JavaScript:
// ==UserScript==
// @name         Remove Wordpress Notifications
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @include      https://YOURSITE_ONE/wp-admin/*
// @include      https://YOURSITE_TWO/wp-admin/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    removeElementsByClass('notice');
    removeElementsByClassQry('.updated, .woocommerce-message');
    removeElementsByClassQry('#message, .error');
    // Smart manager update notice
    removeElementsByClassQry('.sm-upgrade-notice');
    // WP Update Nag notice
    removeElementsByClassQry('.update-nag');
})();

function removeElementsByClass(className){
    const elements = document.getElementsByClassName(className);
    while(elements.length > 0){
        elements[0].parentNode.removeChild(elements[0]);
    }
}

function removeElementsByClassQry(classNames){
    const elements = document.querySelectorAll(classNames);
    for (let i = elements.length; 0 < i ; ){
        elements[--i].remove();
    }
}

hmmm, this CODE block does not display correctly, you'll have to add the CR/LF's again yourself

Screenshot_1.png
 
Last edited:

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu