Learning Thematic Theme and WordPress

Home Forums Using Thematic ( without a child theme ) Learning Thematic Theme and WordPress

This topic is: resolved

This topic contains 2 replies, has 2 voices, and was last updated by  xihonyx 5 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #3920


    I’m trying to learn how the Thematic Theme is constructed, but I’m having trouble finding where the add_actions are for certain functions. Where is the ‘thematic_init’ add_action? I can find the do_action, but not the add_action…

    Also, is there any map or tree diagram that shows where actions are registered and functions are hooked?

    Thanks everybody.



    I understand your confusion. It can sound a little counterintuitive, but the add_action part is up to you and your child theme to use.

    The parent theme adds hooks with do_action. The child theme can then add_action onto those hooks. There are some places where Thematic also uses add_action to add to the hooks, the child theme can then use remove_action if it wants to change or remove the functionality.

    In many places, there are do_action calls that has no add_action attached. These are available for the child theme’s convenience if it needs to use them.

    I kind of like the metaphor of clothes-pegs. An action hook is a peg that may or may not have something on them. Each time you use add_action you hang something on that peg. Thematic has many pegs that are empty, and that simply gives you a lot of possible places to put your stuff.

    Understanding hooks and filters can be daunting at first, but when you get how they work you really have a lot of power in your hands to do whatever you want. And not only with Thematic – the hooks and filters system is the base of how WordPress works.

    I don’t know of a diagram of where which functions are hooked, but there is a visual guide of the available action hooks at http://visualhooks.thematictheme.com/



    Thank you! I had an assumption that was the case.

    Your explanation of hooks and filters is great. I still have much to learn and the visual hook guide will help me work on a project in mind. I appreciate your help and kindness.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Learning Thematic Theme and WordPress’ is closed to new replies.