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 ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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