Add page function
This commit is contained in:
parent
91499b734a
commit
08affa32b5
|
|
@ -27,6 +27,11 @@ class WpApi
|
||||||
{
|
{
|
||||||
return $this->_get('posts', ['filter' => ['name' => $slug]]);
|
return $this->_get('posts', ['filter' => ['name' => $slug]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function page($slug)
|
||||||
|
{
|
||||||
|
return $this->_get('posts', ['type' => 'page', 'filter' => ['name' => $slug]]);
|
||||||
|
}
|
||||||
|
|
||||||
public function categories()
|
public function categories()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue