Description
Build a simple ID, title array from an array of $post objects
Usage
$array = bw_post_array( $posts );Parameters
- $posts
- ( mixed ) required –
Returns
array associative array of post ID to post_titleSource
File name: oik/includes/bw_metadata.phpLines:
1 to 8 of 8
function bw_post_array( $posts ) { $options = array(); foreach ($posts as $post ) { $option_label = apply_filters( 'bw_post_array', $post->post_title, $post ); $options[$post->ID] = $option_label; } return bw_trace2( $options ); }View on GitHub View on Trac
Called by
1 to 2 of 2
