wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
get_category_parents › WordPress Function
Depuis1.2.0
Dépréciéen/a
› get_category_parents ( $category_id, $link = false, $separator = '/', $nicename = false, $deprecated = array() )
Paramètres: (5) |
|
Retourne: |
|
Défini(e) dans: |
|
Codex: | |
Changelog: |
|
Retrieves category parents with separator.
Fonctions en relation: get_category_by_path, get_category_children, get_categories, get_category_link, get_category
Source
function 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 ); }