You appear to be a bot. Output may be restricted
Description
We can't use simplify results when there's more than one meta_value per post
Usage
api_call_mapper::simplify_results( $results );
Parameters
- $results
- ( mixed ) required –
Returns
voidSource
File name: oik-shortcodes/admin/set_oik_api_calls.phpLines:
1 to 13 of 13
function simplify_results( $results ) { $reduced = array(); if ( count( $results ) ) { foreach ( $results as $result ) { $post_id = $result->post_id; $meta_value = $result->meta_value; $reduced[ $post_id ] = $meta_value; } } echo count( $reduced ); echo PHP_EOL; return( $reduced ); }View on GitHub