You appear to be a bot. Output may be restricted
Description
Map an array of posts into the meta_values
Usage
oiksc_api_cache::map_posts( $post_ids, $preload );
Parameters
- $post_ids
- ( array ) required –
- $preload
- ( bool ) optional –
Returns
void
Source
File name: oik-shortcodes/classes/class-oiksc-api-cache.php
Lines:
1 to 15 of 15
function map_posts( $post_ids, $preload=false ) { bw_trace2( null, null, true, BW_TRACE_VERBOSE ); if ( count( $post_ids ) ) { foreach ( $post_ids as $post_id ) { //echo "Mapping $post_id" . PHP_EOL; $this->meta_key = "_oik_api_name"; $this->meta_value = get_post_meta( $post_id, $this->meta_key , true ); bw_trace2( $this->meta_value, "meta_value", false, BW_TRACE_VERBOSE ); $this->map( $post_id ); if ( $preload ) { $this->preload_api_calls( $post_id ); } } } }