Is there a way to check if a custom hook gets called upon? I would like to display a placeholder if no output will be passed to it.
2 comments
Comments are closed.
Is there a way to check if a custom hook gets called upon? I would like to display a placeholder if no output will be passed to it.
Comments are closed.
I believe you are looking for
has_action
, which should …Do you know
did_action
?If I understood you correctly, you are looking for something like the following: