This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function getHttpRequestHeaders() | |
{ | |
$headers = []; | |
foreach ($_SERVER as $key => $value) { | |
if (substr($key, 0, 5) === 'HTTP_') { | |
$headerKey = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($key, 5))))); | |
$headers[$headerKey] = $value; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( | |
'wp_sitemaps_add_provider', | |
function($provider, $name) { | |
if ('users' === $name OR 'taxonomies' == $name) { | |
return false; | |
} | |
return $provider; | |
}, 10, 2 | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_wp_complete() { | |
local cur=${COMP_WORDS[COMP_CWORD]} | |
local command=${COMP_WORDS[1]} | |
local subcommand=${COMP_WORDS[2]} | |
COMPREPLY="" | |
if [[ "$command" = "plugin" ]] | |
then | |
case "$subcommand" in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GTmetrix Test Server Locations | |
from https://gtmetrix.com/locations.html | |
208.70.247.157 | |
204.187.14.70 | |
204.187.14.71 | |
204.187.14.72 | |
204.187.14.73 | |
204.187.14.74 | |
204.187.14.75 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT t.name, t.term_id FROM wp_terms AS t INNER JOIN wp_term_taxonomy AS tt | |
ON tt.term_id = t.term_id | |
WHERE tt.taxonomy IN ('tax') | |
ORDER BY t.name ASC LIMIT 0 , 500 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="flexbox"> | |
<!-- card list --> | |
<ul class="flex-card-list"> | |
<!-- card list item --> | |
<li class="flex-card-listitem"> | |
<!-- card module --> | |
<div class="flex-card"> | |
<!-- image container --> | |
<div class="flex-card-image"> | |
<img src="http://placehold.it/300x200&text=%20" /> |