mercredi 4 février 2015

How to call plugin function everytime


This is probably a very basic and simple matter, but what is the command to call a function in my plugin every time the page is loaded?


I think it is something like add_action() or do_action().


Might it be:



  • add_action('all', 'my_function')


or



  • do_action('all', 'my_function')


Thank you.





Aucun commentaire:

Enregistrer un commentaire