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" |
Explanations: | |
cache: If you include other words in the query, Google will highlight those words within | |
the cached document. For instance, [cache:www.google.com web] will show the cached | |
content with the word “web” highlighted. This functionality is also accessible by | |
clicking on the “Cached” link on Google’s main results page. The query [cache:] will | |
show the version of the web page that Google has in its cache. For instance, | |
[cache:www.google.com] will show Google’s cache of the Google homepage. Note there | |
can be no space between the “cache:” and the web page url. | |
------------------------------------------------------------------------------------------ |
<?php | |
/** | |
* Adds last payment date and next payment date to the members list and export CSV. | |
* Note that "last payment" value will get the last order in "success", "cancelled", or "" status. (Oddly enough, cancelled here means that the membership was cancelled, not the order.) | |
* | |
* The "next payment" value is an estimate based on the billing cycle of the subscription and the last order date. It may be off from the actual recurring date set at the gateway, especially if the subscription was updated at the gateway. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. |
You are looking at the most important, and most abundant thing on the web. You can't see it, unfortunately, because it's very small… aaaaand it's invisible — so having a magnifying glass doesn't really help here. But still.
I'm talking, of course, about U+0020
; not to be confused with the band U2, who are just as ubiquitous, but far less useful.
This unicode point, representing the humble space character, is between every word, in every run of text, on every page of the web. And it has a very special characteristic: it's not sticky like glue. If two words are neighbors but there's not enough room for both of them, the space will free the second word to wrap around and start a new line.
Before getting into flexible containers, viewport meta tags, and @media
breakpoints this humble character is what makes the web fundamentally 'responsive'. That is: able to change the layout of its content to suit different devices, contexts, and settings. Browser text does this automa
<?php | |
// Taken pretty much from https://www.elegantthemes.com/blog/tips-tricks/using-the-wordpress-debug-log | |
// error_log info on php site - http://php.net/manual/en/function.error-log.php | |
// Just stick this function in your functions.php if you like :) | |
if ( ! function_exists('write_log')) { | |
function write_log ( $log ) { | |
if ( is_array( $log ) || is_object( $log ) ) { | |
// error_log - Sends an error message to the web server's error log or to a file. | |
error_log( print_r( $log, true ) ); |
<?php | |
// Basically we need to make sure we load ALL our stylesheets for our child theme AFTER bootstrap | |
// that way we can override bootstrap without using crappy !important overrides, etc. | |
// This sample uses the transportex theme but just replace that for your own theme. | |
function my_theme_enqueue_styles() { | |
$parent_style = 'transportex-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme. |
Updated: 20240917
Updates:
20211123 Updated from mindmap - "Essential Plugins" - available if you contact me!
Quite a few plugins here! Top ones are pretty much essential for a decent website. Create a child theme (see my other GIST for creating a child theme properly).
- WP All in one Security and Firewall (https://en-gb.wordpress.org/plugins/all-in-one-wp-security-and-firewall/)
The correct way to add a child theme to DIVI and other themes. | |
If you don't understand this you are probably in the wrong place. | |
More info: https://codex.wordpress.org/Child_Themes | |
style.css | |
functions.php |
extension_id=jifpbeccnghkjeaalbbjmodiffmgedin # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc"
unzip -d "$extension_id-source" "$extension_id.zip"
Thx to crxviewer for the magic download URL.