Here comes yet another plugin that makes life easier for people who are using the rtPanel WordPress Theme Framework: the rtPanel Hooks Editor. This plugin is an add-on for rtPanel Theme Framework and should be used along with it.

Features of the rtPanel Hooks Editor

See the image below for reference:

rtPanel - Hooks Editor

rtPanel – Hooks Editor

Note: You need to be very careful while adding any code here as this could break your theme.

Following is a simple example of code that can be executed here:

<div class="hello-world">
<?php echo 'Hello World'; ?>
</div>

I hope you enjoy using this plugin and writing your own actions and filters. If you face any technical difficulties, feel free to post your questions on our dedicated support forum. Our rtPanel team will answer them to the best of our ability.

Important Links:

Features of the rtPanel Hooks Editor

See the image below for reference:

Important Links:

On this page

Release-Notes, rtPanel, Archive

Credits

Joshua

Joshua Abenazer

Author

Joshua Abenazer

Author

I love decoding WordPress and finding out new ways to hack the WordPress Core.

VIEW PROFILE

Related articles

Comments

  1. Anthony Avatar

    Anthony

    October 22, 2011

    Love this plugin! More themes should have these standard hooks.

    Only thing is when I added it, I got the following message “The plugin generated 224 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.”

    As far as I can tell it hasn’t had any negative impacts.

    Reply

    1. Rahul Bansal Avatar

      Rahul Bansal

      October 27, 2011

      @Anthony
      Just an update, we tried to reproduce the issue but couldn’t.
      If you notice this again, please let us know which other plugins you are using. It might be a plugin conflict.

      Reply

  2. Puneet Sahalot Avatar

    Puneet Sahalot

    October 25, 2011

    That’s awesome! would have been great if you could make hook names shorter. So, rtp_hooks_after_header could be rtp_after_header 🙂

    Reply

    1. R@XiT Avatar

      R@XiT

      October 25, 2011

      Thanks Puneet for taking your time out, and trying out this plugin. Your suggestion is highly appreciated.

      Reply

    2. Rahul Bansal Avatar

      Rahul Bansal

      October 27, 2011

      @Puneet
      First, thanks for spending time on rtPanel. 🙂
      There are many reasons as why we have used rtp_hooks_* and not rtp_*. Some of them are:

      rtp_hooks_* clubs all functions related to “hooks”. We can use rtp_something_* for some other kind of grouping. This ensures future-compatibility.
      Many IDEs/code-editors scans source-codes of included files and list all functions found in sidebar. In this case, all “hooks” will be easy to find.
      Codes become more readable as anyone by just reading a function-name can guess this is hook and can be “called” from elsewhere.
      It reduces chances of conflicting with another functions. Say there is some other function to do some work “after header”, then this reduces chances of collisions. I personally believe its better to develop conventions which will be easy to follows, rather than trusting our own memories! 😉
      rtPanel theme will have many plugins developed for it. As plugins and themes will evolve over the time, “plugins” can just “search” for all rtPanel hooks by finding all function names in rtPanel theme which starts with rtp_hooks_. We have a use case for this which will make this point clearer in future.

      There are few more points but most of them won’t make sense as of now. May be they will make sense after a year or two!

      Rest, your suggestions are always welcome & appreciated. 🙂

      Reply

      1. Puneet Sahalot Avatar

        Puneet Sahalot

        December 9, 2011

        Thanks Rahul for the explanation. 🙂 Now, I understood the importance of _hooks_ 🙂
        It’s always good to get tips from an experienced developer.
        Thanks again and wish you good luck! 🙂

        Reply

  3. Pankaj Gupta Avatar

    Pankaj Gupta

    March 22, 2012

    This is what I was searching for. Thanks for this hook.

    Reply

  4. Henry Wood Avatar

    Henry Wood

    February 7, 2013

    Fantastic job here Joshua!! Plugin is very pleasing and inspired me to add it. Thank you and keep up the good work.

    Reply

Leave a Reply Cancel reply

Name*

Email*

Comment*

Submit

Δ