Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| # | |
| # annotum via wp-cli | |
| # | |
| # If these steps work, code by @solvitor (http://solvitor.com) | |
| # If not, author is unknown | |
| # | |
| # You'll need to install wp-cli (http://wp-cli.org) and | |
| # set up your (empty, blank) database first. Here, wordpress with user wordpress | |
| # | |
| # Then follow these steps from your web root |
| <?php | |
| /** | |
| * Plugin Name: T5 Log Queries | |
| * Description: Writes all queries to '/query-log.sql'. | |
| * Plugin URI: http://wordpress.stackexchange.com/a/70853/73 | |
| * Version: 2012.11.04 | |
| * Author: Thomas Scholz | |
| * Author URI: http://toscho.de | |
| * Licence: MIT | |
| */ |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| // This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref | |
| <?php | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * Compiled by luetkemj - luetkemj.github.io | |
| * | |
| * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
| * Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
| */ |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.