Page_API::load_page_by_id( string $local_id )

Load a specific page by the id.


Parameters

$local_id

(string) (Required) The local Facebook Page id to get and load for use with the API.


Top ↑

Return

(bool|string) Whether the page is loaded or an error code. False or code means the page did not load.


Top ↑

Source

File: src/Tribe/Meetings/Facebook/Page_API.php

	public function load_page_by_id( $local_id ) {
		$page = $this->get_page_by_id( $local_id );

		// Return not-found if no page.
		if ( empty( $page ) ) {
			return 'not-found';
		}

		// Return disabled if no access token.
		if ( empty( $page['access_token'] ) ) {
			return 'disabled';
		}

		return $this->load_page( $page );
	}

Top ↑

Changelog

Changelog
Version Description
1.7.0 Introduced.