Replace Deprecated Init create_function (php 7.2)
Several plugins still use the deprecated function. EXAMPLE (SSN) //deprecated version add_action('widgets_init', create_function('', 'return register_widget("SimpleSectionNav");')); //7.2 ready version function ssn_register_widget() { return register_widget("SimpleSectionNav"); } add_action( 'widgets_init', [...]
PHP, WP/CP | Type: PHP
Set Cookie, Change Content (or change class)
Using a cookie to change content for repeat visits.
Cookies, CSS, PHP | Type: PHP
Styling Embedded Google Calendars
How to style a Google calendar in an iframe embedded on a page.
CSS, PHP | Type: CSS
Turn Start Date into Pretty Date
Once you've established a date, display it as you like (see catholic fdn single-events.php for complex usage)
ACF, PHP, WP/CP | Type: PHP
Upload folders for Custom Post Types
Create a folder within wp-content/uploads that will contain uploads for each custom post type.
CPT, PHP, WP/CP | Type: PHP
WordPress Template Tags
Sometimes you need to turn a WP template tag into a PHP variable, so you can construct a proper bit of code.
PHP, WP/CP | Type: PHP