Download the PHP package humanmade/see-in-rest-api without Composer
On this page you can find all versions of the php package humanmade/see-in-rest-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download humanmade/see-in-rest-api
More information about humanmade/see-in-rest-api
Files in humanmade/see-in-rest-api
Package see-in-rest-api
Short Description Quickly request the current resource off the WordPress REST API via the WordPress admin bar.
License GPL-3.0-or-later
Informations about the package see-in-rest-api
See in REST API 
Quickly request the current resource off the WordPress REST API via the WordPress admin bar.
Introduction
This plugin adds a new node to the WordPress admin bar, See in REST API, that allows for requesting the current resource off the WordPress REST API. This works both in the WordPress admin and on the front end of your site.
Supported resources:
- posts (including attachments);
- terms;
- users (including your profile).
The plugin does not perform any checks around permissions. If a resource is not available or readable, you will find out after you clicked the link. 🙂
Installation
Requirements:
- PHP 7.2 or higher;
- WordPress 5.5 or higher.
Install with Composer:
This plugin follows Semantic Versioning.
Usage
PHP Filters
see_in_rest_api.rest_url
This filter allows the user to modify the URL that the admin bar node will link to.
Arguments:
$rest_url
(string
): REST API URL for the current resource.
Usage Example:
License
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.