Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_cat_slug($cat_id) {
- $cat_id = (int) $cat_id;
- $category = get_category($cat_id);
- return $category->slug;
- }
- echo get_cat_slug(3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement