WordPress API SDK

Homepage
in package

Table of Contents

Properties

$pages  : Pages
$posts  : Posts
$settings  : Settings|null

Methods

__construct()  : mixed
get()  : array<string, mixed>
Get the homepage content

Properties

Methods

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
Tags
throws
NotFoundException
WordPressApiException
Return values
array<string, mixed>
On this page

Search results