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...
}

Did this page help you?