Automator_Notifications::fetch_feed()

Fetch notifications from feed.


Return Return

(array)


Source Source

File: src/core/admin/notifications/notifications.php

	public function fetch_feed() {
		$res = wp_remote_get( $this->source_url );
		if ( is_wp_error( $res ) ) {
			return array();
		}
		$body = wp_remote_retrieve_body( $res );
		if ( empty( $body ) ) {
			return array();
		}
		return $this->verify( json_decode( $body, true ) );
	}


Top ↑

Changelog Changelog

Changelog
VersionDescription
{VERSION}Introduced.