You appear to be a bot. Output may be restricted
Description
Load the terms for a flat taxonomy
Usage
$array = oik_clone_load_flat_terms( $taxonomy, $post_id );
Parameters
- $taxonomy
- ( string ) required – the taxonomy name
- $post_id
- ( ID ) required – the ID of the post
Returns
array array of terms and term hierarchy to pass to the serverSource
File name: oik-clone/admin/oik-clone-taxonomies.phpLines:
1 to 10 of 10
function oik_clone_load_flat_terms( $taxonomy, $post_id ) { oik_require( "admin/class-oik-clone-taxonomies.php", "oik-clone" ); $taxonomy_class = new OIK_clone_taxonomies(); $tax = $taxonomy_class->set_taxonomy( $taxonomy ); $terms = $taxonomy_class->get_terms( $post_id ); //$source_tree = $taxonomy_class->get_term_hierarchy(); $source_terms = $taxonomy_class->get_source_terms(); bw_trace2( $source_terms, "source_terms flat" ); return( $source_terms ); }View on GitHub