Filter | Description | Example |
---|---|---|
allintext | Searches for occurrences of all the keywords given. | allintext:"keyword" |
intext | Searches for the occurrences of keywords all at once or one at a time. | intext:"keyword" |
inurl | Searches for a URL matching one of the keywords. | inurl:"keyword" |
allinurl | Searches for a URL matching all the keywords in the query. | allinurl:"keyword" |
intitle | Searches for occurrences of keywords in title all or one. | intitle:"keyword" |
SELECT | |
first_sessions.sid AS sessionId, | |
visitorId, | |
first_transactions.transactionId AS transactionId, | |
timestamp, | |
deviceCategory, | |
landingPage, | |
pageviews, | |
timeOnSite, | |
channel, |
// | |
// Placed in any cross-origin IFRAMEs | |
// | |
if (window !== window.top) { | |
if (typeof window.PerformanceObserver !== "function") { | |
return; | |
} | |
// Listen for all ResourceTimings, repeating them to the parent window | |
var observer = new PerformanceObserver(function(entries) { |
// | |
// Naive ResourceTiming crawl of all IFRAMEs. | |
// | |
// Based on https://github.com/SOASTA/boomerang/blob/master/plugins/restiming.js | |
// which you should use to deal with all of the caveats (e.g. startTime adjusting) | |
// | |
function isFrameAccessible(frame) { | |
var dummy; |
<img srcset="https://assets.imgix.net/flower.jpg?w=50 50w, | |
https://assets.imgix.net/flower.jpg?w=100 100w, | |
https://assets.imgix.net/flower.jpg?w=150 150w, | |
... | |
https://assets.imgix.net/flower.jpg?w=5200 5200w, | |
https://assets.imgix.net/flower.jpg?w=5260 5260w" | |
src="https://assets.imgix.net/flower.jpg?w=540" | |
alt="A white flower" | |
/> |
<?php | |
function ccbysa($imagehtml, $sourceuri, $owneruri, $ownername) { | |
return <<<HTML | |
{$imagehtml} | |
<br/> | |
<small><a href="https://creativecommons.org/licenses/by-sa/2.0/">CC BY-SA</a> | |
<a href="{$sourceuri}">image</a> by <a href="{$owneruri}">{$ownername}</a> | |
<br/> | |
HTML; |
<script> | |
(function(){ | |
var data = { | |
"@context": "http://schema.org", | |
"@type": "BlogPosting", | |
"mainEntityOfPage": { | |
"@type": "WebPage", | |
"@id": {{Page URL}} | |
}, | |
"headline": {{SCHEMA - Article Headline}}, |
I have made this function using the WP_Image_Editor class and I have filtered through the "wp_generate_attachment_metadata" hook. You can modify the "theme" namespace into function names with your theme name or in anyway you like.
Applying the filter directly to wp_generate_attachment_metadata the image placeholders are auto added into WordPress metadata, so when your add/modify/delete an image (or regenerate it via a plugin), it accomplishes to modify also to the image placeholders.
The use of the native theme support can prevent the generation of lqip or target specific image sizes to generate.
It contains an hook filter lqip_quality to modify the quality without have to modify the function.
'use strict'; | |
// Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
// http://creativecommons.org/publicdomain/zero/1.0/ | |
(function() { | |
// Update 'version' if you need to refresh the cache | |
var staticCacheName = 'static'; | |
var version = 'v1::'; |
Would you like to contribute? Please add a comment. This list is in no way exhaustive!
No guarantee that they'll be used, but all input is appreciated!
A common "template" is As a X, I want Y, so that Z
, but use whatever feels most appropriate.