src/facades/feed-facade.php
public function merge_feeds( array $feeds ) {
		$source_feeds = [ [] ];

		foreach ( $feeds as $feed ) {
			$source_feeds[] = $feed->get_items();
		}
		$merged_feed = array_merge( ...$source_feeds );

		$new_feed = $this->service->get_feed( '' );

		$new_feed->set_items( $merged_feed );

		return $new_feed;
	}
public function merge_feeds( array $feeds ) {
		$source_feeds = [ [] ];

		foreach ( $feeds as $feed ) {
			$source_feeds[] = $feed->get_items();
		}
		$merged_feed = array_merge( ...$source_feeds );

		$new_feed = $this->service->get_feed( '' );

		$new_feed->set_items( $merged_feed );

		return $new_feed;
	}
public function merge_feeds ( array $ feeds ) { $ source_feeds = [ [ ] ] ; foreach ( $ feeds as $ feed ) { $ source_feeds [ ] = $ feed -> get_items ( ) ; } $ merged_feed = array_merge ( ... $ source_feeds ) ; $ new_feed = $ this -> service -> get_feed ( '' ) ; $ new_feed -> set_items ( $ merged_feed ) ; return $ new_feed ; }
Merge different Feed_Services together.
Feeds passed in should have already had
retrieve_items called on them.

@param $feeds array<Feed>
Merge different Feed_Services together . Feeds passed in should have already had retrieve_items called on them .