Skip to content

Instantly share code, notes, and snippets.

@iiiBird
Created March 26, 2015 06:53
Show Gist options
  • Save iiiBird/d6fb4925b7b252d75931 to your computer and use it in GitHub Desktop.
Save iiiBird/d6fb4925b7b252d75931 to your computer and use it in GitHub Desktop.
Вывод пустых категорий
<?php
function hide_cat_widget($args){
$args ["hide_empty"] = 0;
return $args;
}
add_filter("widget_categories_args","hide_cat_widget");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment