wordpress_ex v0.1.1 WordpressEx.Pages View Source

Wordpress Page endpoints

Link to this section Summary

Functions

Get a single page from id

Get a list of pages

Link to this section Functions

Get a single page from id

Examples:

WordpressEX.Pages.find(123)
WordpressEX.Pages.find(123, context: "edit")

API Reference

https://developer.wordpress.org/rest-api/reference/pages/#retrieve-a-page

Get a list of pages

Examples:

WordpressEx.Pages.list()
WordpressEx.Pages.list(page: 2, per_page: 3)

API Reference

https://developer.wordpress.org/rest-api/reference/pages/#list-pages