Action hooks add a whole new level of customisability to WordPress themes and plugins without the need to modifiy the theme’s or plugin’s core codes themeselves, allowing you to safely update the theme or plugin in the future without losing your modification.
To quote Nathan Rice:
Action hooks are essentially placeholders. Wherever an action hook is placed, it will execute any code that has been “hooked” to it.
…WordPress action hooks are a means of providing a way for other developers to insert their own code in specific locations within your code, in order to change or expand the functionality of your code.
Nathan Rice
Action hooks are introduced into the Graphene theme since version 1.0.9.
Full list of Graphene’s Action Hooks
Sorted by file, and in order of appearance in the file.
author.php
- graphene_before_authorpostlist
- graphene_after_authorpostlist
comments.php
- graphene_protected_comment
- graphene_before_comments
- graphene_after_comments
- graphene_comments_pagination
- graphene_comments_disabled
- graphene_before_commentform
- graphene_after_commentform
footer.php
- graphene_before_footer
- graphene_copyright
- graphene_w3c
- graphene_developer
- graphene_after_footer
functions.php
- graphene_setup
- graphene_admin_header_style
- graphene_custom_style
- graphene_light_header
- graphene_default_menu
- graphene_before_comment
- graphene_comment_gravatar
- graphene_comment_author
- graphene_comment_metadata
- graphene_comment_replylink
- graphene_comment_meta
- graphene_before_commententry
- graphene_comment_moderation
- graphene_after_commententry
- graphene_after_comment
- graphene_show_adsense
- graphene_adsense
- graphene_show_addthis
- graphene_addthis
- graphene_widgets_init
- graphene_twitter_widget
- graphene_options_init
- graphene_comment_form_fields
- graphene_comment_textarea
- graphene_comment_submit_button
- graphene_continue_reading_link
- graphene_auto_excerpt_more
- graphene_posts_nav
header.php
- graphene_feed_icon
- graphene_top_search
- graphene_top_menu
- graphene_before_content
- graphene_before_slider
- graphene_before_slideritems
- graphene_before_sliderpost
- graphene_slider_postentry
- graphene_slider_nav
loop-author.php
- graphene_author_entry
- graphene_author_details
- graphene_author_desc
- graphene_author_latestposts
- graphene_author_popularposts
loop.php
- graphene_post_nav
- graphene_post_date
- graphene_post_title
- graphene_post_meta
- graphene_before_post_content
- graphene_after_post_content
- graphene_post_footer
- graphene_not_found
searchform.php
- graphene_search_form
sidebar-footer.php
- graphene_before_bottomsidebar
- graphene_after_bottomsidebar
sidebar.php
- graphene_before_rightsidebar
- graphene_after_rightsidebar

18 comments
John Howard said
November 11, 2010 at 5:46 am (UTC 8 )
Hi Khairul,
love the new theme – one of the best in my opinion which I will be using as soon as I can make a quick amendment.
I love the slider feature and want to be able to show posts from a different site. Let me explain further pmgadget.com is my new site and pmgadget.wordpress.com is my personal blog site. I simply want to show blogs in the slider on the .com site from the blog site (essentially from this rss feed http://pmgadget.wordpress.com/feed/rss/.
I have a feeling I will be able to do this using hooks but am not sure how – can you point me in the right direction please.
Many thanks and congratulations on this great looking theme!
Frank Catanzaro said
November 30, 2010 at 4:28 am (UTC 8 )
Hi,
I love the new Graphene theme, but am having trouble with the right sidebar sliding down below every other page but the front page. Is there a setting I have missed, can this be corrected.
Frank
Scott Bruce said
December 5, 2010 at 7:43 pm (UTC 8 )
Hello Khairul,
I am fairly new to WordPress and I’ve started my journey with your excellent theme. I have a question regarding the use of the postmash pluggin to re-order posts with your theme. I’ve been able to use this to re-order the display of posts (both on the page and in the Admin dashboard) but this doesn’t seem to change the order displayed in the Jquery Slider. I’d be very grateful if you could reply with some advice. regards Scott
Joshua said
December 11, 2010 at 4:21 pm (UTC 8 )
I love this theme!!! I have a slight problem though. When I am logged into WordPress, and I go to my site, everything is fine. However, when others who are not signed in (like regular visitors) they don’t see a menu under the header. There is a black bar, but no white writing or links. Did I change a setting or something? What could have caused this?
Graphene Tema | Gratis svenska WordPress teman (pingback)
March 24, 2011 at 12:29 am (UTC 8 )
[...] Includes action hooks for much greater customisability through child theme. See the full list of action hooks at the Graphene Action Hooks page. [...]
Yusuf said
April 8, 2011 at 8:02 pm (UTC 8 )
hi khoirul,
nice theme i use it for my new domain but i have some problem that i can’t solve. the case is in sidebar … how i can resize the page? because i need to put recapthcha in sidebar and that’s not enough…
Dan said
May 3, 2011 at 5:09 am (UTC 8 )
I don’t know if you can help me or not but I am trying to get the Graphene theme to work with the Facebook_Comments plugin. The comment counts are not working for me. The plugin says I need to “If you’re using a custom theme, you may have to modify your comments.php file (located inside your theme’s directory) to include a call to get_comments_number() where your comments are being listed.”
Can you provide me with any help on how to accomplish this with the Graphene theme?
Thanks,
Dan
Lyn said
May 12, 2011 at 6:27 pm (UTC 8 )
How do I change the color theme? I would like to do red or black instead of the blue. Is there a way?
agel said
October 12, 2011 at 4:46 am (UTC 8 )
I like this theme, I use it for my new domain
Thank you
Jon said
September 1, 2011 at 3:51 am (UTC 8 )
I have just been through the current (graphene 1.4.1) files and put an updated version of this list on the wiki at http://wiki.khairul-syahir.com/graphene-theme/wiki/Actions_Reference
Syahir Hakim said
September 1, 2011 at 9:29 pm (UTC 8 )
That’s awesome, Jon! Thanks a lot!
RBoy said
September 8, 2011 at 9:13 pm (UTC 8 )
Hello. One question 2U: How can i manually translate “Leave Reply” and “Submit Comment” ?
Ken said
September 11, 2011 at 11:02 am (UTC 8 )
@RBoy,
Join us in the support forum by visiting this link: http://forum.khairul-syahir.com/graphene-support/where-can-i-find-leave-a-reply-in-the-theme-files-to-change-the-wording
which answers your question.
Comment page: 1 2 / Next