该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

WP Query Console

描述

Disclaimer: Plugin development is in progress & we are constantly improving the code. If you think code can be improved or have any suggestion feel free to send a PR or open an issue.

Handy tool for developers to quickly test various WordPress queries (WP_Query, WP_User_Query, WP_Comment_Query, WP_Term_Query, WP_Network_Query, WP_Site_Query). Simply provide your arguments array and select the query type you would like to test. You will get the result as a collapsible tree.

Usage

  • Simply activate and new menu option “Query Console” will be added
  • Enter you query arguments array in editor provided, select query type from dropdown & hit execute
  • Check the result displayed

Roadmap

  • More info about query for debugging
  • Code refactoring and improvement
  • UI for arguments
  • Saving queries
  • Localization

If you have any suggestions/Feature request that you would like to see in the upcoming releases , feel free to let us know in the issues section

屏幕截图

  • Plugin in action

安装

From your WordPress dashboard
1. Visit ‘Plugins > Add New’
2. Search for WP Query Console or upload zip file
3. Activate WP Query Console from your Plugins page

Manual Installation
1. Download “WP Query Console”.
2. Upload the wp-query-console directory to your ‘/wp-content/plugins/’ directory, using your favorite method (ftp, sftp, scp, etc…)
3. Activate WP Query Console from your Plugins page.

常见问题

Installation Instructions

From your WordPress dashboard
1. Visit ‘Plugins > Add New’
2. Search for WP Query Console or upload zip file
3. Activate WP Query Console from your Plugins page

Manual Installation
1. Download “WP Query Console”.
2. Upload the wp-query-console directory to your ‘/wp-content/plugins/’ directory, using your favorite method (ftp, sftp, scp, etc…)
3. Activate WP Query Console from your Plugins page.

评价

2023 年 8 月 9 日
This plugin hasn't been maintained in some time. You are likely to generate this error in your debug log: :  Function register_rest_route was called <strong>incorrectly</strong>. The REST API route definition for <code>wqc/v1/query</code> is missing the required <code>permission_callback</code> argument. For REST API routes that are intended to be public, use <code>__return_true</code> as the permission callback. This error goes away after de-activating the plugin.
2019 年 3 月 22 日 1 回复
I tested this plugin with a couple of queries and worked great. Please keep it updated.
阅读所有1条评价

贡献者及开发者

“WP Query Console” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“WP Query Console”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

v1.0

Released on 16th March 2018

  • Complete rewrite using React [ Gutenberg Effect 😉 ]

v0.1

Released on 19th March 2017

  • Initial plugin release