do_action('custom_name') without previous add_action(…) ?
-
Hi,
i’m struggling to learn how to create custom wp-themes. So i installed (not activated) the itek-theme to learn how it is done and fell about something curious:
In the index.php of the itek-theme i found the following code:
do_action( 'itek_before_index' )
AND
do_action( 'itek_after_index' )
I guess i know, what it’s doing BUT i thought – since this is a custom hook – it has to be defined somewhere. And i cannot find any hint on where these two custom hooks of the itek-theme are defined.
Did they simply forget to define those hooks or is there some magic going on (or am i just too dumb to understand?)
Thanks for the help,
raschid
from Kiel, Germany
- The topic ‘do_action('custom_name') without previous add_action(…) ?’ is closed to new replies.