承接 humanmade/see-in-rest-api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

humanmade/see-in-rest-api

Composer 安装命令:

composer require humanmade/see-in-rest-api

包简介

Quickly request the current resource off the WordPress REST API via the WordPress admin bar.

README 文档

README

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:

composer require humanmade/see-in-rest-api

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:

// Show the See in REST API admin bar node for administrators only.
add_filter( 'see_in_rest_api.rest_url', function ( string $rest_url ): string {

	return current_user_can( 'manage_options' ) ? $rest_url : '';
} );

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.

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 18
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2021-03-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固