feed_writer->write_feed_file( $this->get_feed_data() ); do_action( AbstractFeed::FEED_GEN_COMPLETE_ACTION . $this->feed_type ); } /** * Get the feed file writer instance. * * @return AbstractFeedFileWriter * @since 3.5.0 */ public function get_feed_writer(): AbstractFeedFileWriter { return $this->feed_writer; } /** * Get the feed data as an array. * * Concrete classes must implement this method to return their unique data. * * @return array * @since 3.5.0 */ abstract public function get_feed_data(): array; }