Homepage
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- get() : array<string, mixed>
- Get the homepage content
Properties
$pages
private
Pages
$pages
$posts
private
Posts
$posts
$settings
private
Settings|null
$settings
Methods
__construct()
public
__construct(Pages $pages, Posts $posts[, Settings|null $settings = null ]) : mixed
Parameters
get()
Get the homepage content
public
get() : array<string, mixed>
This checks WordPress settings to determine what the homepage is:
- If a static page is set as homepage, returns that page
- Otherwise returns latest posts