• 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

HomeTag: filter

filter

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
  • 118
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
  • 76
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
  • 71
wphooks
0 comments
CodeJaW HooksTutorials

Filter jaw_section_title

This filter is used in Section Bar. function my_section_title($title){ return " " . $title; } add_filter('jaw_section_title', 'my_section_title'); The result can look like this: List of all hooks you can find HERE

  • March 24, 2016
  • 0
  • 96
wphooks
0 comments
CodeJaW HooksTutorials

Filter jaw_cropped_text

This filter is used in post box. It’s the cutted description and title text of your post. By standard way it looks like this. function my_cropped_text($text){ return strtoupper($text); } add_filter('jaw_cropped_text', 'my_cropped_text'); The result can look like this: List of all hooks you can find HERE

  • March 24, 2016
  • 0
  • 76
wphooks
0 comments
CodeJaW HooksTutorials

Filter jaw_excerpt

This filter is used in post box. It’s the description text of your post. By standard way it looks like this. function my_excerpt($excerpt){ return str_replace("e", "-SECRET-", $excerpt); } add_filter('jaw_excerpt', 'my_excerpt'); The result can look like this: List of all hooks you can find HERE

  • March 24, 2016
  • 0
  • 67
wphooks
0 comments
CodeJaW HooksTutorials

Filter jaw_breadcrumbs_title

This filter is used in breadcrumbs title. By standard way is there just “Home”. function my_breadcrumbs_title($breadcrumbs_title){ return "My " . $breadcrumbs_title; } add_filter('jaw_breadcrumbs_title', 'my_breadcrumbs_title'); The result can look like this: List of all hooks you can find HERE

  • March 24, 2016
  • 0
  • 84
New options
0 comments
CodeJaW HooksTutorials

How to add new items to Theme Options

In case of you want to add some options to Theme Options, you can use our filters in your Child Theme. Simply add this code to your child theme’s function.php function my_themeoptions_menu($menu){ $menu['myoptions'] = array('submenu' => 0, 'name' => 'My Options', "icon" => "jaw-icon-king"); return $menu; } //add section to left menu in Theme Options add_filter('jaw_themeoptions_menu',

  • March 18, 2016
  • 0
  • 116
wphooks
0 comments
for DevelopersJaW Hooks

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.

  • August 26, 2015
  • 0
  • 311
Copyright © 2016 jawtemplates - WordPress Design Studio Disable responsivity