• 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_meta_categories
wphooks

Filter jaw_meta_categories

  • admin
  • Posted in JaW Hooks
0
SHARES
SHARESHARESHARESHARE
SHARESHARE

Description

GDN version 1.4+

This filter is used in Meta Category. You can change category items in meta.

 

Example

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 find HERE

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

mynews

MyNews Feature

shortocdes-conditional

Conditional Shortcodes

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

Action jaw_mobile_menu_wrapper

Tags

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