Mustn’t do_action accomponied with a function?

Lets say we have a do_action like this:


Doesn’t this mean that there has to be a some_action function somewhere in the wordpress like this for example:

function some_action(){
/* blah blah blah*/

My question comes from a do_action at the storefront theme of woocommerce that has a line in header.php like this:

do_action( ‘storefront_header’ );

But I haven’t been able to find any storefront_header function so I started wondering perhaps not all do_actions are coming with a function of their own. Is it possible?

Read more here:: Mustn’t do_action accomponied with a function?

Leave a Reply

Your email address will not be published. Required fields are marked *