How do I determine if a category exists by ID? May 15, 2022 by Tarik Billa There is category_exists() function, but it seems to be for internal use in admin so you can try term_exists() instead.