You appear to be a bot. Output may be restricted
Description
Build a simple ID, title array from an array of $term objects
Usage
$array = bw_term_array( $terms );
Parameters
- $terms
- ( mixed ) required –
Returns
array associative array of term_id to nameSource
File name: oik/includes/bw_metadata.phpLines:
1 to 9 of 9
function bw_term_array( $terms ) { $options = array(); if ( count( $terms ) ) { foreach ($terms as $term ) { $options[$term->term_id] = $term->name; } } return bw_trace2( $options ); }View on GitHub View on Trac