Skip to content

Commit 08affa3

Browse files
committed
Add page function
1 parent 91499b7 commit 08affa3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Cyberduck/LaravelWpApi/WpApi.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ public function post($slug)
2727
{
2828
return $this->_get('posts', ['filter' => ['name' => $slug]]);
2929
}
30+
31+
public function page($slug)
32+
{
33+
return $this->_get('posts', ['type' => 'page', 'filter' => ['name' => $slug]]);
34+
}
3035

3136
public function categories()
3237
{

0 commit comments

Comments
 (0)