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:
  • 4: .

Description

Retrieves category parents with separator.

Related Functions

get_category_by_path, get_category_children, get_categories, get_category_link, get_category

Top Google Results

User discussions

wpseek mobile