data[self::IMPORT_ITEMS_IDS_PARAM]) ? $this->data[self::IMPORT_ITEMS_IDS_PARAM] : null; $args = array( 'post_type' => 'flamingo_inbound', 'post_status' => 'any', 'posts_per_page' => -1, 'post__in' => $messagesIds ); $query = new \WP_Query($args); $this->items = $query->posts; } }