Articles of notices

How to disable admin notice in child theme?

Similar to, Disable update notification for individual plugins. I have purchased a theme, which displays a notice in admin panel to all administrators to install recommended plugins. In child theme, how can I disable this notice to make it not appear any more in the admin panel in the future? Parent theme is using […]

Is there a way to hook into the update-core page for custom messages?

We have some sites where we note a few things that need to be checked or done either before or immediately after a core, theme or plugin upgrade. While I keep a list of these things, sometimes users themselves do the upgrade and mess everything up. I was hoping to be able to add a […]

Notices on the front-end

I am reposting. As my last questions wasn’t famous. My users are submitting custom post types (projects) from the frontend. How do I display notices (such as the one displayed on admin board) to the front end for when the user performs an action, example edit a post. I know there are hooks for update/submit […]

PHP notice coming from the WordPress core?

Do you also experience this particular notice? ( Of course one has to turn on the DEBUG mode at the wp-config.php to be able to see this kind of a notice ). > Notice: add_shortcode_param is deprecated since version 4.4 (will be > removed in 5.1)! Use vc_add_shortcode_param instead. in > F:\inetpub\wwwroot\…….\wp-includes\functions.php on line 3783 […]

Notice: wp_enqueue_script was called incorrectly

This is an error I’m receiving when my plugin is activated: Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /directory/ on line 3547 This is line […]

Warning Notice $wpdb->prepare incorrect number of arguments passed

I am receiving this notice when trying to use the $wpdb->prepare function: Notice: wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (7) for the number of arguments passed (4). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.) in C:\wamp\www\wpml\wp-includes\functions.php on line 4139 […]

my theme breaks WP export

I know this is a vague question, please just spend time on it if you are in the mood, I don’t need to be flamed for not being more precise. I’m having a problem with a theme I’m developing, for some reason it breaks the export function of WordPress. I’m not asking for anyone to […]

admin_notices not displaying in plugin

I know I’m probably doing something dumb here but I just can’t get this to run. I’m trying to set up a little API for my plugin and to create a class to display admin notices a little easier. Here’s what I have: // Send data to class to get HTML for admin notice $efpd=Efpdd::getInstance(); […]

WordPress admin notice in plugin function

i have sample wordpress plugin class. Im hooking woocommerce woocommerce_saved_order_items and i want create a admin notice. Add action from __construct works, but when i want create a notice in hook function it doesnt appears, where is the problem? class SomeClass { private static $instance; public function __construct() { add_action(‘woocommerce_saved_order_items’,array($this,’orderStatusChange’),10,1); add_action(‘admin_notices’, array($this,’simple_notice’)); // This works […]

admin_notices after register_uninstall / deactivate_hook

I’ve successfully added admin notices to display on register_activation_hook, and when the plugin updates, but I’m not seeing any way to display admin_notices after the uninstall or deactivation hooks. Is this at all possible? Alternatively can use javascript at this stage? (yes sort of). EDIT: To answer @G. M. I’ve already read the docs and […]