WordPress Glossary Plugin (CMTG) - Troubleshooting - Removing Admin Notices


Removing The Admin Notices

Back to User Guides

If your license for the WordPress Glossary plugin has expired and you didn't decide to renew it, you may find yourself stuck with the notices which sometimes are not dismissable (mostly in older versions).

To support those cases we came up with a code which should hide the notices. Added the following code to the functions.php of the theme. Always create a back up before editing theme files.

function cm_admin_hide_notices() {

ob_start();

?>

<script type='text/javascript'>

jQuery( document ).ready( function () {

jQuery( '#message.error' ).hide();

} );

</script>

<?php

echo ob_get_clean();

}

add_action( 'admin_print_footer_scripts', 'cm_admin_hide_notices' );


More information about the WordPress Glossary Plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.