dimanche 17 septembre 2017

wordpress do_action hook test if echo empty

In wordpress, is there any way to heck if do_action echo empty? I have a situation that do_action echos empty and if it has hooks then it echo the result.

like:

do_action('hook1') => result => <div>...</div>
do_action('hook2') => result => ''

Thanks Ramin

Aucun commentaire:

Enregistrer un commentaire