Skip to content

Instantly share code, notes, and snippets.

View sawwd's full-sized avatar
💭
What's happening?

Aprier sawwd

💭
What's happening?
View GitHub Profile
@sawwd
sawwd / gist:68a672e4bbb66fe1651e8cc7eb26cc69
Created November 20, 2017 22:04
Filters that you should add to Gmail to filter stuff from Trac out of your inbox and into a 'wp-trac' label.
Matches: subject:([WordPress Trac]) "added -- Ticket URL:"
Do this: Mark as read
Matches: subject:([WordPress Trac]) "Changes (by johnbillion)"
Do this: Mark as read
Matches: subject:([WordPress Trac]) "Comment (by johnbillion)"
Do this: Mark as read
INITIALISATION
==============
load wp-config.php
set up default constants
load wp-content/advanced-cache.php if it exists
load wp-content/db.php if it exists
connect to mysql, select db
load object cache (object-cache.php if it exists, or wp-include/cache.php if not)
load wp-content/sunrise.php if it exists (multisite only)
@sawwd
sawwd / wp_mail.md
Created November 20, 2017 21:50 — forked from johnbillion/wp_mail.md
WordPress Emails

WordPress Emails

This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.

This is accurate as of WordPress 4.9.

There are a few TODOs left. Please bear with me.

@sawwd
sawwd / class-walker-menu.php
Last active November 27, 2017 00:36
Standalone version of WordPress Menu Walker
<?php
class Walker_Menu {
public function __construct($elements) {
return $this->walk($elements, 0, array(
'menu' => '',
'container' => 'div',
'container_class' => 'menu-container',
'container_id' => '',
'menu_class' => 'menu',