• 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 HooksFilter jaw_get_template_part
wphooks

Filter jaw_get_template_part

  • admin
  • Posted in JaW Hooks
0
SHARES
SHARESHARESHARESHARE
SHARESHARE

Description

GDN version 2.1+

This filter is used in every template. You can change HTML output.

Example

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;
}
add_filter('jaw_get_template_part', 'my_get_template_part',10,3); 


related

List of all hooks you can find HERE

Related Posts

wphooks
0 comments
JaW Hooks

Actions jaw_before_usermanagement and jaw_after_usermanagement

wphooks
0 comments
JaW Hooks

Action jaw_postbox_X

wphooks
0 comments
JaW Hooks

Filter jaw_meta_categories

install-t6

How to set Custom Stock Ticker

Post Offset in Categories

Related Posts

wphooks
0 comments
JaW Hooks

Actions jaw_before_usermanagement and jaw_after_usermanagement

wphooks
0 comments
JaW Hooks

Action jaw_postbox_X

wphooks
0 comments
JaW Hooks

Filter jaw_meta_categories

wphooks
0 comments
JaW Hooks

Action jaw_mobile_menu_wrapper

Tags

  • html
  • Modify HTML
  • Template
  • Templater
  • Was this Helpful ?
  • yes   no
Copyright © 2016 jawtemplates - WordPress Design Studio Disable responsivity