A collection of (mostly) WordPress-related snippets and references I’ve found useful and worth keeping where I can find them. Feel free to use what you like, and point me to some better snippets or references.
See result on nmctr.org
Media | Type: Other
As basic as it gets, for clarity's sake.
WP Query | Type: PHP
Read the entire thread.
Filter | Type: PHP
Less system-generated email will end up in spam folders if it's a legitimate email address.
WP/CP | Type: PHP
Header info for child theme style sheet.
Child Theme, CSS, WP/CP | Type: CSS
There are glitches with Dreamweaver and possibly with OSX that prevent copying text occasionally. So far the only thing I’ve found that works is to clear the clipboard via Terminal…
clipboard, pasteboard | Type: Other
Not sure why you wouldn't use a placeholder instead.
Maybe the most widely used clear after float.
CSS | Type: CSS
Sometimes functions are easier to use in conditional statements if converted to variables.
ACF, PHP, WP/CP | Type: PHP
Enable compression in wp-config /* Compression */ define( 'COMPRESS_CSS', true ); define( 'COMPRESS_SCRIPTS', true ); define( 'ENFORCE_GZIP', true );
wp-config | Type: PHP