WordPress REST API Functions
Bring functions into WordPress REST API
★ 5stars
5composer installs
2forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/wpup/functions/archive/refs/heads/master.zipAlso on Packagist as wpup/functions:
composer require wpup/functionsFrom the readme
REST API Functions
Bring functions into WordPress REST API.
Example
Create hello.php in wp-content/themes/NAME/functions/hello.php
Call it
Supported HTTP methods for each function file are:
GET, POST, PUT, PATCH, DELETE
Namespaces and classes are supported as well.
Install
Filters
Short documenation about filters, read the source code to find out more about each filter.
- functionsfile - Modify file path
- functionshandle - Modify function/method string name (that are used for calluserfunc)
- functionsdirectories - Modify which directories the plugin should scan for functions files. Default is wp-content/themes/NAME/functions
License
MIT © Fredrik Forsmo
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| v1.0.0 | Oct 31, 2018 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.