Tagged Questions
3
votes
2answers
56 views
How to count number of functions attached to an action hook?
I have some actions like this
function simple_notification() {
echo '<div>This is a notification</div>';
}
add_action( 'site_notices', 'simple_notification' );
...
0
votes
1answer
398 views
Getting admin notices working for plugin errors
I'm beginning with creating plugins and I don't quite understand the process of displaying error messages. e.g. I use the php readfile function to download a file from a hidden location. If something ...
0
votes
1answer
383 views
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 ...