Skip to content
This repository has been archived by the owner on Sep 4, 2023. It is now read-only.

Commit

Permalink
Add filter on args preparing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahe committed Oct 8, 2014
1 parent 766fd85 commit 5cadafb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inc/class.client.php
Expand Up @@ -60,7 +60,7 @@ public static function prepareArgs( $taxonomy ) {
$taxonomy['labels'][$k] = stripslashes($v);
}

return array(
return apply_filters( 'simple-taxonomy-prepare-args', array(
'hierarchical' => $taxonomy['hierarchical'],
'update_count_callback' => '_update_post_term_count', // use default WP callback
'rewrite' => $taxonomy['rewrite'],
Expand All @@ -71,7 +71,7 @@ public static function prepareArgs( $taxonomy ) {
'labels' => $taxonomy['labels'],
'capabilities' => $taxonomy['capabilities'],
'show_in_nav_menus' => (boolean) $taxonomy['show_in_nav_menus']
);
), $taxonomy );
}

/**
Expand Down Expand Up @@ -185,4 +185,4 @@ public static function the_excerpt( $content = '' ) {
return self::taxonomyFilter( $content, 'excerpt' );
}
}
?>
?>

0 comments on commit 5cadafb

Please sign in to comment.