When your website means business.

Snippets

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.

Remove Metabox from Template»

When you need a particular metabox to disappear from a particular template.
Javascript, WP/CP | Type: Javascript

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', 'ssn_register_widget' ); EXAMPLE //deprecated…
PHP, WP/CP | Type: PHP

Responsive Data Tables»

Brilliant responsive trick for data tables, when you have no choice but to use them.
CSS, Responsive, Tables | Type: CSS