Add a handler to execute in response to actions:
- Create a plugin
- In the main PHP code, execute add_action calls:
- add_action(‘wp_head’,my_function());
- The first parameter is the action that the code will respond to
- The second should be your function.
- add_action(‘wp_head’,my_function());
- Possible actions: