/ Published in: PHP
Create your own wordpress hooks easily and simply. Just rename the function to whatever you like.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/** * Usage: add_action('custom_hook', 'my_new_function') * Just place custom_hook(); somewhere in your theme. **/ function custom_hook(){ do_action('custom_hook'); } function my_new_function(){ //do something }