• 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 Developers

for Developers

wphooks
0 comments
JaW Hooks

Actions jaw_before_usermanagement and jaw_after_usermanagement

This action is used above/below MyNews User manager page. Changable avatar. Firstly install this plugin: https://wordpress.org/plugins/wp-user-avatar/ function my_change_avatar(){ echo '<div class="change-avatar">'; echo do_shortcode('[avatar_upload]'); echo '</div>'; } add_action('jaw_before_usermanagement','my_change_avatar'); The result can look like this:   Change user’s Name/Pasword/… . Firstly install this plugin: https://wordpress.org/plugins/wp-user-avatar/ function my_change_pass(){ echo '<div class="change-pass">'; echo do_shortcode('[clean-login-edit]'); echo '</div>'; } add_action('jaw_before_usermanagement','my_change_pass'); The result

  • December 8, 2016
  • 0
  • 114
wphooks
0 comments
JaW Hooks

Filter jaw_get_template_part

GDN version 2.1+ This filter is used in every template. You can change HTML output. function my_get_template_part( $html, $tmpl_name, $dir){ $html = ""; if($tmpl_name == "related-post" && $dir == "blog"){ jaw_template_set_var('box_title', esc_html__('Related Posts', "gdn-theme")); echo jaw_get_template_part('section_bar', 'simple-shortcodes'); $html .= '<div class="jaw-blog-wraper">'; $html .= "And now for some completely different"; $html .= '</div>'; } return $html;

  • October 31, 2016
  • 0
  • 147
wphooks
0 comments
JaW Hooks

Action jaw_postbox_X

This action is used for content of post boxes. function my_init(){ remove_action("jaw_postbox_vertical", array("jwRender", "postboxMeta"), 15, 1); add_action("jaw_postbox_vertical", array("jwRender", "postboxMeta"), 9, 1); } add_action('init', 'my_init', 10); The result can look like this: function my_postbox(){ echo "Something special here"; } add_action("jaw_postbox_vertical", "my_postbox", 11, 1); The result can look like this: List of all hooks you can find HERE

  • October 17, 2016
  • 0
  • 121
wphooks
0 comments
JaW Hooks

Filter jaw_meta_categories

GDN version 1.4+ This filter is used in Meta Category. You can change category items in meta.   function my_meta_categories($categories){ foreach($categories as $key => $category){ if($category->parent > 0){ unset($categories[$key]); } } return $categories; } add_filter( 'jaw_meta_categories', 'my_meta_categories',10 ); In meta will be shown only main categories (not childs)   List of all hooks you can

  • October 3, 2016
  • 0
  • 111
wphooks
0 comments
JaW Hooks

Action jaw_mobile_menu_wrapper

This action is used next to mobile menu bar function my_custom_mobile_menu_button(){ echo 'echo '<a href="SOME_URL">BUY NOW</a>'; } add_action('jaw_mobile_menu_wrapper', 'my_custom_mobile_menu_button'); The result can look like this: List of all hooks you can find HERE

  • September 9, 2016
  • 0
  • 96
wphooks
0 comments
JaW Hooks

Action jaw_before_register_button

This action is used before registern button. function jaw_another_button() { echo "<a class="btn jaw-landing-page-buy-button" href="https://themeforest.net/item/gdn-magazine-blog-video-theme/16897309"><span style="font-weight: bold;">BUY NOW</span></a>"; } add_action('jaw_before_register_button', 'jaw_another_button',0); The result can look like this: List of all hooks you can find HERE

  • August 31, 2016
  • 0
  • 73
wphooks
0 comments
JaW Hooks

Filter jaw_gallery_box_default_items_name

This filter is used in JaW Gallery Simple and Horizontal. You can change its default item’s name, which is simple Items (Items are applicated if gallery contains photos and videos) or Photos (Photos are applicated if gallery contains only photos). function my_custom_gallery_items_name($title){ return "images"; } add_filter('jaw_gallery_box_default_items_name', 'my_custom_gallery_items_name'); The result looks like this: List of all

  • June 6, 2016
  • 0
  • 63
wphooks
0 comments
JaW Hooks

Filter jaw_gallery_box_default_name

This filter is used in JaW Gallery Simple, Vertical and Horizontal. You can change its default name, which is simple GALLERY. function my_custom_gallery_title($title){ return "custom name"; } add_filter('jaw_gallery_box_default_name', 'my_custom_gallery_title'); The result looks like this: List of all hooks you can find HERE

  • June 6, 2016
  • 0
  • 65
wphooks
0 comments
JaW Hooks

Action jaw_after_menu_wrapper

This action is used after the menu wrapper. function jaw_landing_page_buy_button() { echo "<a class='btn jaw-landing-page-buy-button' href='http://themeforest.net/item/goodstore-woocommerce-theme/7314327?ref=jawtemplates' style='position: absolute; top: 23px; right: 0px; border: 2px solid white; color: white; z-index: 1px; padding: 5px 40px;'><span style='font-weight: bold;'>BUY NOW</span></a>"; } add_action('jaw_after_menu_wrapper', 'jaw_landing_page_buy_button',0); The result can look like this: List of all hooks you can find HERE

  • April 29, 2016
  • 0
  • 114
categorypreset
0 comments
for DevelopersTutorials

Category Preset

Make or modify your own presets with detailed settings for categories. The preset you select here will be applied just to this particular category.

  • April 18, 2016
  • 0
  • 190
  • 1
  • 2
  • 3
  • 4
  • …
  • 6
Copyright © 2016 jawtemplates - WordPress Design Studio Disable responsivity