Add page function

This commit is contained in:
Ben Speakman 2015-04-11 16:22:42 +01:00
parent 91499b734a
commit 08affa32b5

View file

@ -27,6 +27,11 @@ class WpApi
{
return $this->_get('posts', ['filter' => ['name' => $slug]]);
}
public function page($slug)
{
return $this->_get('posts', ['type' => 'page', 'filter' => ['name' => $slug]]);
}
public function categories()
{