Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 725 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 725 Bytes

WP REST API Hello World

Build Status

A Hello World example for the WordPress REST API. Install this plugin and go the the /wp-json/wprahw/hello-world endpoint on your site and you will see an Hello World JSON Response.

Unit Testing

You can perform PHPUnit tests on this plugin by simply going to the plugin directory and typing in these commands:

  1. phpunit
  2. phpunit -c multisite.xml

PHP Validation

You can run a WordPress PHP code standards validator script by performing these commands:

  1. npm install
  2. composer install
  3. grunt phpcs