11 Comments


  1. On topic of figuring out hooks, I had quite a bit of trouble at start with Hybrid (didn’t know much about hooks overall) and made function to show what is hooked to what. It made into wprecipes, catswhocode and smashingmagazine posts by now. Seems many find it convenient to see list of wth is going on inside hook. :)

    http://www.wprecipes.com/list-all-hooked-wordpress-functions

    Latest version is better at filtering so I usually set it to show hooks that start with hybrid and output at the bottom of page.

    Thinking about making widget out of it for debug purposes.

  2. Sam

    A is_sidebar_active filter allowing a child theme or plugin to activate or deactivate sidebars independently of the widgets inside them would be very useful.

    Thank you for your work on this terrific theme.


    1. WordPress already has like three different hooks for disabling widget areas. This is a topic that’s been covered several times in the support forums.

  3. Sam

    Is there a way to activate a Thematic sidebar (widget area) even if it’s currently empty of widgets?

    I was trying to add a menu to the sidebar via the hybrid_before_primary hook, but I realized the hook action isn’t actually called unless there are widgets there already.

    I guess I can write my own widget instead, if that’s the way to do it.


    1. You’ll have to ask over on the ThemeShaper forums about the Thematic theme. If you have questions about Hybrid, post it here in the support forums.


  4. Not sure if this is the right place to ask this…
    I noticed the notification system on themehybrid.com. I was wondering if that’s already part of Hybrid Framework, where can it be enabled/disabled from and what would be the right way to do it.

    If it’s not, I’m sure there’s a lot of people who would cheer it’s implementation.


    1. I’m not sure what “notification system” you’re asking about. Could you explain?


      1. I was asking about the subscription system.
        I might be wrong, but I don’t think it comes with WordPress.
        So I suppose it’s either a plug-in or a set of functions you made (that could be plug-in-able)…

  5. sam

    Could you add a hook to control the showing of the comments template?

    You could either convert the comments_template() call to a default Hybrid action that could be moved or removed, or you could call it with a boolean filter like

    apply_filters( 'hybrid_show_comments', true ) and comments_template( '', true );

    to allow toggling it.

    It would help publishers who don’t use comments at all save a few database queries.


    1. There’s already a WordPress hook for that. Plus, there’s no need because the database isn’t called if there are no comments.

  6. sam

    I don’t see any WP hook to remove or cancel the `comments_template()` function call.

    `comments_template()` will always query the database for comments if it’s called during a single post/Page request — you can check with var_dump or SAVEQUERIES — it just won’t include the comments template file if it finds zero comments.

Comments are closed.