Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryelle/query-test
Create and display SQL queries and performance based on WP_Query objects
https://github.com/ryelle/query-test
Last synced: about 1 month ago
JSON representation
Create and display SQL queries and performance based on WP_Query objects
- Host: GitHub
- URL: https://github.com/ryelle/query-test
- Owner: ryelle
- Created: 2014-06-27T18:17:05.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-27T18:17:16.000Z (over 10 years ago)
- Last Synced: 2024-10-09T23:21:04.815Z (3 months ago)
- Language: PHP
- Size: 105 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Query Test
Create and display SQL queries and performance from WP_Query objects
Contributors: ryelle
Tags:
Requires at least: 3.9
Tested up to: 4.0
Stable tag: 0.1.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html## How to use
Edit `includes/admin-page.php` to set up the `$queries` variable for your queries. `$queries` is an array of WP_Query parameters. The format for the array should be `label => args`:
'Default query' => array(
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => -1
),## Installation
1. Clone or download the `/query-test` directory to the `/wp-content/plugins/` directory.
2. Activate Query Test through the 'Plugins' menu in WordPress.