Skip to content

Instantly share code, notes, and snippets.

@IanColdwater
IanColdwater / twittermute.txt
Last active March 8, 2026 00:11
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@addzycullen
addzycullen / WordPress Debug Log | Enable Log
Last active March 10, 2023 12:34
Enable the WordPress Debug log, and hide errors from displaying on site. To be placed in wp_config file below DB prefix
define( 'WP_DEBUG', true );
if ( WP_DEBUG ) {
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
define( 'SCRIPT_DEBUG', true );
define( 'SAVEQUERIES', true );
}
@addzycullen
addzycullen / WordPress Debug Log | Write to Log
Last active June 25, 2025 23:02
This fn allows you write to the WordPress debug log if you have it enabled in the wp_config file.
if (!function_exists('write_log')) {
/**
* Write to Debug Log with Optional Context
*
* Logs the provided variable to the PHP error log, always prefixed with the file and line number.
* Optionally includes function, class, and call type context if $show_context is true.
*
* @param mixed $log The content to log (string, array, object, etc).
* @param bool $show_context Whether to include function, class, and type context. Default false.
* @return void