wp-includes/category-template.php:47Retrieves category parents with separator.
$category_idint$linkbooloptionalfalse$separatorstringoptional'/'$nicenamebooloptionalfalse$deprecatedarrayoptionalarray()string|WP_Errorfunction get_category_parents( $category_id, $link = false, $separator = '/', $nicename = false, $deprecated = array() ) { if ( ! empty( $deprecated ) ) { _deprecated_argument( __FUNCTION__, '4.8.0' ); } $format = $nicename ? 'slug' : 'name'; $args = array( 'separator' => $separator, 'link' => $link, 'format' => $format, ); return get_term_parents_list( $category_id, 'category', $args );}Introduced in 1.2.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/category-template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.