OK, I have been reading up on hooks, actions and filters, and I THINK that I got my head around it.
Maybe you can read through and just correct any misunderstandings I might have:
Please clarify: True or False:
1) Hooks are available in two flavors: Either action hooks, or filter hooks.
2) Hooks are defined by the core wordpress theme and the child theme / framework.
3) You will either have to look in the wordpress codex, or in the template files themselves, to tell if a hook is an action hook or a filter hook.
4) An action hook allows you to add an action by using the following sytnax:
add_action ( [the name of the hook], [the name of the function being called], [Optional: Priority Level with default of 10 if undeclared], [Optional: the number of arguments with default of 1 if undeclared]);
5) The function that is called can appear either before OR after the add_action hook in the functions.php file. (Or does it need to appear in the functions.php file BEFORE the add_action that calls it?)
6) The function that is called by add_action MUST end with a return $args; which matches the $args when the function is first declared.
7) Filter hooks will have apply_filters appear in front of them where they appear in the templates.
8) Often hooks will have the same names as core wordpress functions
Please let me know whether these assumptions are right or wrong. And if you have any other tips on understanding them - in particular, understanding FILTER hooks - they are greatly appreciated.
Thanks.