public static function createMultiple($posts, $load_terms = true)
    {
        if (!Arr::iterable($posts)) {
            return $posts;
        }
        
        $out = array();
        foreach ($posts as $k => $post) {
            if (!get_post_status($post)) {
                continue;
            }
            $record = self::create($post, $load_terms);
            $out[$k] = $record;
        }
        return $out;
    }
public static function createMultiple($posts, $load_terms = true)
    {
        if (!Arr::iterable($posts)) {
            return $posts;
        }
        
        $out = array();
        foreach ($posts as $k => $post) {
            if (!get_post_status($post)) {
                continue;
            }
            $record = self::create($post, $load_terms);
            $out[$k] = $record;
        }
        return $out;
    }
public static function createMultiple ( $ posts , $ load_terms = true ) { if ( ! Arr :: iterable ( $ posts ) ) { return $ posts ; } $ out = array ( ) ; foreach ( $ posts as $ k => $ post ) { if ( ! get_post_status ( $ post ) ) { continue ; } $ record = self :: create ( $ post , $ load_terms ) ; $ out [ $ k ] = $ record ; } return $ out ; }
Create multiple instances based on WP posts
This basically autoloads the meta data
@param array $posts
@param bool $load_terms
@return array
Create multiple instances based on WP posts This basically autoloads the meta data