feed_writer = $feed_writer; $this->feed_type = FeedManager::PROMOTIONS; } /** * Get the feed data and return as array of objects. * Array contents should match headers in PromotionsFeed::PROMOTIONS_FEED_HEADER * * @return array * @since 3.5.0 */ public function get_feed_data(): array { $query_args = array( 'post_type' => 'shop_coupon', 'post_status' => 'publish', 'posts_per_page' => - 1, // retrieve all items ); return FeedUploadUtils::get_coupons_data( $query_args ); } }