Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_get_term_taxonomy_parent_id [ WordPress Function ]

wp_get_term_taxonomy_parent_id ( $term_id, $taxonomy )
Parameters:
  • (int) $term_id
  • (string) $taxonomy
Returns:
  • (int|bool) false on error
Defined at:



Returns the term's parent's term_ID

Source


<?php
function wp_get_term_taxonomy_parent_id$term_id$taxonomy ) {
    
$term get_term$term_id$taxonomy );
    if ( !
$term || is_wp_error$term ) )
        return 
false;
    return (int) 
$term->parent;
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics