src/WordpressDatabase.php
public function getFrontPageID() {
		// Core WP only handles either 'page' or 'posts' as of 2016-07-22
		$type = $this->getOption('show_on_front');
		if ($type !== 'page')
		{
			throw new Exception('Cannot use "'.__FUNCTION__.'" if Wordpress database isn\'t using a page as it\'s home page. Type = '.$type);
		}
		$wordpressID = $this->getOption('page_on_front');
		if ($wordpressID) {
			return $wordpressID;
		} else {
			$wordpressID = ($wordpressID === false) ? 'false' : $wordpressID; // Fix printing of 'false'
			throw new Exception('Invalid ID #'.$wordpressID.' returned from "'.__FUNCTION__.'"');
		}
	}
public function getFrontPageID() {
		// Core WP only handles either 'page' or 'posts' as of 2016-07-22
		$type = $this->getOption('show_on_front');
		if ($type !== 'page')
		{
			throw new Exception('Cannot use "'.__FUNCTION__.'" if Wordpress database isn\'t using a page as it\'s home page. Type = '.$type);
		}
		$wordpressID = $this->getOption('page_on_front');
		if ($wordpressID) {
			return $wordpressID;
		} else {
			$wordpressID = ($wordpressID === false) ? 'false' : $wordpressID; // Fix printing of 'false'
			throw new Exception('Invalid ID #'.$wordpressID.' returned from "'.__FUNCTION__.'"');
		}
	}
public function getFrontPageID ( ) { // Core WP only handles either 'page' or 'posts' as of 2016-07-22 $ type = $ this -> getOption ( 'show_on_front' ) ; if ( $ type !== 'page' ) { throw new Exception ( 'Cannot use "' . __FUNCTION__ . '" if Wordpress database isn\'t using a page as it\'s home page. Type = ' . $ type ) ; } $ wordpressID = $ this -> getOption ( 'page_on_front' ) ; if ( $ wordpressID ) { return $ wordpressID ; } else { $ wordpressID = ( $ wordpressID === false ) ? 'false' : $ wordpressID ; // Fix printing of 'false' throw new Exception ( 'Invalid ID #' . $ wordpressID . ' returned from "' . __FUNCTION__ . '"' ) ; } }
Return the front page.

Throw an exception if this Wordpress DB isn't using a 'page' as the homepage
and is showing a post listing instead.

@return array|null
Return the front page .