get_category_parents
get_category_parents ( $category_id, $link = false, $separator = '/', $nicename = false, $deprecated = array() )
Parameters:- (int) category_id Category ID.
- (bool) link Optional. Whether to format with link. Default false.
- (string) separator Optional. How to separate categories. Default '/'.
- (bool) nicename Optional. Whether to use nice name for display. Default false.
- (array) deprecated Not used.
Returns:- (string|WP_Error) A list of category parents on success, WP_Error on failure.
Defined at:Change Log: - Introduced in WordPress: 1.2.0
- Deprecated in WordPress: —
Description
Retrieves category parents with separator.