This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.
This documentation has moved here: https://github.com/johnbillion/wp_mail
This document lists all the situations where WordPress sends an email, along with how to filter or disable each email.
This documentation has moved here: https://github.com/johnbillion/wp_mail
| <?php | |
| /** | |
| * Whitelist embedded links in the REST API responses | |
| * | |
| * This is often useful if you want to only get specified resources embedded along with the | |
| * main resources, rather than the "all of nothing" approach of passing `?_embed` to the API request. | |
| * | |
| * You can either pass a comma seperated list of relationships or an array of string via the `_embed_include` query param. | |
| * | 
| <?php | |
| /* | |
| * Dependent Plugin Activation/Deactivation | |
| * | |
| * Sources: | |
| * 1. https://pippinsplugins.com/checking-dependent-plugin-active/ | |
| * 2. http://10up.com/blog/2012/wordpress-plug-in-self-deactivation/ | |
| * | |
| */ | |
| <?php | |
| /** | |
| * Add params back to oEmbed provider request URL. | |
| * | |
| * WordPress runs the embed URL through urlencode prior to constructing it's oEmbed provider endpoint call. | |
| * This renders any passed in URL query params useless for Vimeo embeds (and probably others). | |
| * This filter function will decode those URL query param, and add them as proper query args to the provider URL. | |
| * | |
| * The first function param, $provider, is the oEmbed provider endpoint. | 
| # A heavily customized VCL to support WordPress | |
| # Some items of note: | |
| # Supports https | |
| # Supports admin cookies for wp-admin | |
| # Caches everything | |
| # Support for custom error html page | |
| vcl 4.0; | |
| import directors; | |
| import std; | 
git remote add upstream https://github.com/whoever/whatever.git
git fetch upstream
| /* global jQuery, wp */ | |
| jQuery( function( $ ) { | |
| var initializeAllClocks, initializeClock; | |
| /** | |
| * Find clocks. | |
| * | |
| * @param [container] Scoping element for finding clock elements. | |
| * @returns {void} | 
| <?php | |
| /** | |
| * Plugin Name: Customizer Cross-Domain Workaround (Trac #39128) | |
| * Description: Force customizer preview to use siteurl instead of home URL to work around Trac #39128. Temp fix for issue loading customizer preview when home and siteurl have different domains (cross-domain). | |
| * Plugin URI: https://core.trac.wordpress.org/ticket/39128 | |
| * Author: Weston Ruter, XWP | |
| * Author URI: https://make.xwp.co/ | |
| * | |
| * Copyright (c) 2017 XWP (https://xwp.co/) | |
| * | 
| /* Make sure edit shortcut for nab body class doesn't conflict with nav menu edit shortcut */ | |
| .customize-partial-edit-shortcut-nav_body_class > .customize-partial-edit-shortcut-button { | |
| top: -30px; | |
| } | |
| /* Example styles */ | |
| body.foo nav { | |
| border: solid 2px red !important; | |
| } | 
| add_action( 'customize_register' , 'my_options' ); | |
| function home_page_options( $wp_customize ) { | |
| // get current lang | |
| $language = (empty($_REQUEST['lang'])) ? 'en_' : $_REQUEST['lang'] . '_'; | |
| $wp_customize->add_setting( $language . 'my_field', | |
| array( | |
| 'default' => '' |