function get_post_categories($post, $without = NULL, $limit = NULL) { $categories = get_the_category($post); if ($without || $limit) { $categories = reduce_categories($categories, $without, $limit); } return $categories; }
function get_post_categories($post, $without = array('featured', 'hp_lead', 'sponsored'), $limit = NULL) { $categories = get_the_category($post); if ($without || $limit) { $categories = reduce_categories($categories, $without, $limit); } return $categories; }