• Home
  • Quick Start
    • Color Schemes
  • Documentation
    • Shortcodes
    • JaW Hooks
    • Screenshots of ThemeOptions
  • Tutorials
  • Forum
  • Contact
Log In

  • Home
  • Quick Start
    • Color Schemes
  • Documentation
    • Shortcodes
    • JaW Hooks
    • Screenshots of ThemeOptions
  • Tutorials
  • Forum
  • Contact

Homefor DevelopersJaW Hooks
wphooks

JaW Hooks

Our customers usually want to customize their theme, so in the GDay News theme are used lots of hooks for better customization via child theme or custom plugins. Here is a list of all hooks with some documentation as well.

  • admin
  • Posted in for DevelopersJaW Hooks
0
SHARES
SHARESHARESHARESHARE
SHARESHARE

Actions

Actions are used in theme on places, where our customers usually wants to customize the theme. Add some code by action is very easy.  Take for example first of our actions jaw_before_header. This  action is used in header. Now if  we want to put some object (e.g. some image) into header just put into your functions.php in your Child theme this code:

function my_custom_header(){
    echo '<img src="SOME_URL" alt="NAME_OF_IMAGE" />';
}
add_action('jaw_before_header', 'my_custom_header');

The result can look like this:
action_jaw_before_header

More about actions you can find on codex.wordpress.org.

jaw_before_header

jaw_after_header

jaw_under_topbar

jaw_before_menuwrapper

jaw_after_menu_wrapper

jaw_mobile_menu_wrapper

jaw_before_register_button

jaw_before_breadcrumbs

jaw_after_breadcrumbs

jaw_before_section_title

jaw_after_section_title

jaw_before_single_perex

jaw_after_single_perex

jaw_after_single_meta

jaw_before_perex_box

jaw_after_side_box

jaw_before_single_content

jaw_after_single_content

jaw_after_single

jaw_before_no_posts

jaw_after_no_posts

jaw_before_blog

jaw_after_blog

jaw_after_postbox_content

jaw_after_footer_widgets

jaw_gallery_before_title

jaw_gallery_after_title

jaw_gallery_before_main_photo

jaw_gallery_after_main_photo

jaw_gallery_before_list_photos

jaw_gallery_after_list_photos

jaw_save_theme_options

jaw_postbox_classical

jaw_postbox_simple

jaw_postbox_vertical

jaw_postbox_vertical_small

jaw_postbox_vertical_big

jaw_before_usermanagement

jaw_after_usermanagement

Filters

Filters can be used for filtering of some content. You can use it if you want to e.g. add something after post excerpt.

Take a look at our  jaw_section_title filter. If you want to add icon before every title bar, just add into your function.php in your Child theme this code:

function my_title_filter($content){
    return '<i class="jaw-icon-heart-off"></i> ' . $content;
}
add_filter('jaw_section_title', 'my_title_filter');

The result can look like this:

filter_jaw_section_title

More about filters you can find on codex.wordpress.org.

jaw_themeoptions

jaw_themeoptions_menu

jaw_revocomposer_elements

jaw_revocomposer_elements_editor

jaw_menu_widget_areas

jaw_body_class

jaw_breadcrumbs_title

jaw_breadcrumbs_text

jaw_post_format

jaw_excerpt

jaw_cropped_text

jaw_section_title

jaw_single_title

jaw_revocomposer_content – Output HTML from RevoComposer on frontend

jaw_gallery_filter_close_icon

jaw_gallery_filter_undo_icon

jaw_gallery_filter_arrow_right_icon

jaw_gallery_filter_arrow_left_icon

jaw_gallery_filter_description_up_icon

jaw_gallery_filter_description_down_icon

jaw_gallery_box_default_name

jaw_gallery_box_default_items_name

jaw_default_embed_icon

jaw_default_video_icon

jaw_meta_categories

jaw_related_posts_query_cats

jaw_related_posts_query_tags

jaw_get_template_part

jaw_logo_size

jaw_mobile_logo_size

jaw_menu_logo_size

jaw_usermanagement_categories

jaw_usermanagement_tags

jaw_usermanagement_authors

 

Related Posts

wphooks
0 comments
JaW Hooks

Actions jaw_before_usermanagement and jaw_after_usermanagement

wphooks
0 comments
JaW Hooks

Filter jaw_get_template_part

wphooks
0 comments
JaW Hooks

Action jaw_postbox_X

kybl

Essential Grid – JaW Custom Arrows

anchor_by_electric_avenue

Anchor target is hidden under fixed menu.

Related Posts

wphooks
0 comments
JaW Hooks

Actions jaw_before_usermanagement and jaw_after_usermanagement

wphooks
0 comments
JaW Hooks

Filter jaw_get_template_part

wphooks
0 comments
JaW Hooks

Action jaw_postbox_X

wphooks
0 comments
JaW Hooks

Filter jaw_meta_categories

Tags

  • action
  • customization
  • filter
  • hook
  • Was this Helpful ?
  • yes   no
Copyright © 2016 jawtemplates - WordPress Design Studio Disable responsivity