Articles on: Developers

Available Hooks in Zakra Theme

Hooks allow you to add extra functionality inside the theme. Using hooks, you will be able to change or add code without having to edit the core files.

There are two types of hook: actions and filters.

Action Hooks allow you to insert custom code and add new functionality.
Filter Hooks allow you to modify code.

Zakra provides you various hooks that allow you to add your custom code at various parts of the theme.

A list of Hooks available in Zakra are shown below:


Action Hooks



Header
zakra_action_doctype
zakra_action_head
zakra_action_before
zakra_action_before_header
zakra_action_header_top
zakra_action_header_top_left_content
zakra_action_header_top_right_content
zakra_action_before_header_main
zakra_action_header_main
zakra_action_after_header_main
zakra_action_after_header


Content
zakra_before_page_header
zakra_action_breadcrumbs
zakra_after_page_header
zakra_action_before_content
zakra_action_entry_content

Footer
zakra_action_after_content
zakra_action_before_footer
zakra_action_footer_widgets
zakra_action_footer_bottom_bar
zakra_action_footer_bottom_bar_one
zakra_action_footer_bottom_bar_two
zakra_action_after_footer
zakra_action_after
zakra_after_posts_the_loop
zakra_after_single_post
zakra_after_single_post_content
zakra_post_readmore
zakra_entry_meta_end

Page Settings
Action Hook: Page Settings


Filter Hooks



Header
zakra_header_top_enabled
zakra_header_top_class
zakra_header_class
zakra_header_transparency_filter
zakra_header_top_container_class
zakra_header_main_container_class
zakra_header_main_style_choices
Primary Menu Class
zakra_header_action_class
zakra_before_mobile_menu_toggle

Content
Page Header
Page Title
zakra_breadcrumbs_enabled
After Primary Content
zakra_sidebar_class
Read More
Typography

Footer
Footer
Scroll to Top

Page Settings
zakra_page_setting




Usage



To know how to use a hook, refer to this: How to use Hooks in Zakra Theme?

WordPress Default Hooks used in Zakra



Action: wp_head, wp_body_open, wp_footer,etc.
Filter: body_class, post_class, etc.

For Additional Information, consult this article: WordPress Hook

Updated on: 19/09/2019

Was this article helpful?

Share your feedback

Cancel

Thank you!