Custom Alerts
-
Hi there
I appreciate this is a really, really basic question, but I’m only brand new to WordPress and so would appreciate your help.
I’ve followed your example of how to create custom alerts, but how do I get a custom plugin that I’ve written to raise that alert?
So, in your example you’ve got
add_action('sample_hook_name', array($this, 'SampleFunction'), 10, 2);
But how do I get my custom plugin to raise that as an alert?
I’ve tried:
do_action( 'sample_hook_name', 1, 2 );
But it doesn’t work, with the function ‘SampleFunction’ never being called.
Hopefully this is something simple that I’ve missded.
Many thanks ??
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom Alerts’ is closed to new replies.