Skip to content

Instantly share code, notes, and snippets.

View mainiomooses's full-sized avatar
😵
<-- Constantly that

Jaakko Pöntinen mainiomooses

😵
<-- Constantly that
View GitHub Profile
@oh2fih
oh2fih / wp-config-suppress-debug.php
Last active April 30, 2025 13:55
Suppress certain patterns from WP debug log lines
<?php
/** Suppress certain patterns from WP debug log lines
*
* Here, $suppress_patterns is an array of arrays. Each inner array contains first the error
* level to match and then string parts that should be found (in order) from the log line.
*
* You can place this in wp-config.php after `define('WP_DEBUG_LOG', true );`
*/
// Utility function to check if all parts appear in order and non-overlapping in a message
@TeemuSuoranta
TeemuSuoranta / kunnat.php
Created March 8, 2017 14:55
Suomen kunnat maakunnittain 2017
<?php
$municipalities_by_region = array(
'Ahvenanmaa' => array(
35 => 'Brändö',
43 => 'Eckerö',
60 => 'Finström',
62 => 'Föglö',
65 => 'Geta',