Function : has_events()
Checks if a specific events has registered callbacks functions. returns true if so or false if not.
Here is an example :
<?php
if( has_events( 'publish_post' ) ){
// do something...
}
Updated less than a minute ago
Checks if a specific events has registered callbacks functions. returns true if so or false if not.
Here is an example :
<?php
if( has_events( 'publish_post' ) ){
// do something...
}
Updated less than a minute ago