Skip to content

Commit

Permalink
Merge pull request #9 from Snaver/wp-pages
Browse files Browse the repository at this point in the history
Added WP Pages support
  • Loading branch information
boboudreau authored Apr 2, 2017
2 parents e8d8f18 + 4f9ac4a commit d31d7b6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/Endpoint/Pages.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace Vnn\WpApiClient\Endpoint;

/**
* Class Pages
* @package Vnn\WpApiClient\Endpoint
*/
class Pages extends AbstractWpEndpoint
{
/**
* {@inheritdoc}
*/
protected function getEndpoint()
{
return '/wp-json/wp/v2/pages';
}
}
1 change: 1 addition & 0 deletions src/WpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* @method Endpoint\Categories categories()
* @method Endpoint\Comments comments()
* @method Endpoint\Media media()
* @method Endpoint\Pages pages()
* @method Endpoint\Posts posts()
* @method Endpoint\PostStatuses postStatuses()
* @method Endpoint\PostTypes postTypes()
Expand Down

0 comments on commit d31d7b6

Please sign in to comment.