we are having a performance issue for it we need to customize the calling of methods $get_posts
methods in main post single page but we can't find where does it's code located
we want to overwrite the $q['fields']
array in this part
switch ( $q['fields'] ) {
case 'ids':
$fields = "$wpdb->posts.ID";
break;
case 'id=>parent':
$fields = "$wpdb->posts.ID, $wpdb->posts.post_parent";
break;
default:
$fields = "$wpdb->posts.ID,$wpdb->posts.post_date,$wpdb->posts.post_title,$wpdb->posts.post_status,$wpdb->posts.post_name,$wpdb->posts.post_parent,$wpdb->posts.guid,$wpdb->posts.menu_order,$wpdb->posts.post_type,$wpdb->posts.post_mime_type";
}