• 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

JaW Hooks

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
  • 68
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
  • 58
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
  • 77
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
  • 108
wphooks
0 comments
CodeJaW HooksTutorials

Action jaw_gallery_after_list_photos

This action is used after list of photos in a single gallery function my_custom_gallery_after_listphoto() { echo '<p>I am right here :)</p>'; } add_action('jaw_gallery_after_list_photos', 'my_custom_gallery_after_listphoto'); The result can look like this: List of all hooks you can find HERE

  • October 5, 2015
  • 0
  • 65
wphooks
0 comments
CodeJaW HooksTutorials

Action jaw_gallery_before_list_photos

This action is used before list of photos in a single gallery function my_custom_gallery_before_listphoto() { echo '<p>I am right here :)</p>'; } add_action('jaw_gallery_before_list_photos', 'my_custom_gallery_before_listphoto'); The result can look like this: List of all hooks you can find HERE

  • October 5, 2015
  • 0
  • 46
wphooks
0 comments
CodeJaW HooksTutorials

Action jaw_gallery_after_main_photo

This action is used after main photo in a single gallery function my_custom_gallery_after_photo() { echo '<p>I am right here :)</p>'; } add_action('jaw_gallery_after_main_photo', 'my_custom_gallery_after_photo'); The result can look like this: List of all hooks you can find HERE

  • October 5, 2015
  • 0
  • 45
wphooks
0 comments
CodeJaW HooksTutorials

Action jaw_gallery_before_main_photo

This action is used before main photo in a single gallery function my_custom_gallery_before_photo() { echo '<img src="SOME_URL" alt="NAME_OF_IMAGE" />'; } add_action('jaw_gallery_before_main_photo', 'my_custom_gallery_before_photo'); The result can look like this: List of all hooks you can find HERE

  • September 29, 2015
  • 0
  • 63
wphooks
0 comments
CodeJaW HooksTutorials

Action jaw_gallery_after_title

This action is used after title in a single gallery function my_custom_gallery_after_title() { echo '<img src="SOME_URL" alt="NAME_OF_IMAGE" />'; } add_action('jaw_gallery_after_title', 'my_custom_gallery_after_title'); The result can look like this: List of all hooks you can find HERE

  • September 29, 2015
  • 0
  • 48
wphooks
0 comments
CodeJaW HooksTutorials

Action jaw_gallery_before_title

This action is used before title in a single gallery function my_custom_gallery_before_title() { echo '<img src="SOME_URL" alt="NAME_OF_IMAGE" />'; } add_action('jaw_gallery_before_title', 'my_custom_gallery_before_title'); The result can look like this: List of all hooks you can find HERE

  • September 29, 2015
  • 0
  • 51
  • 1
  • 2
  • 3
  • 4
Copyright © 2016 jawtemplates - WordPress Design Studio Disable responsivity