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 | |
/** Copy PNG files from the Source Directory( and its child directories) to destination as specified | |
* | |
* I use it to move all the png files from the extracted subtle patterns directories to another directory | |
* | |
* @param string $path the directory which contains our subdirectories | |
* @param string $destination_dir the absolute path to directory where files will be moved | |
*/ | |
function copy_png_files( $path, $destination_dir ) { |
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
/* | |
Taken from: https://gist.github.com/soufianeEL/3f8483f0f3dc9e3ec5d9 | |
Modified by Ferri Sutanto | |
- use promise for verifyConfirm | |
Examples : | |
<a href="posts/2" data-method="delete" data-token="{{csrf_token()}}"> | |
- Or, request confirmation in the process - | |
<a href="posts/2" data-method="delete" data-token="{{csrf_token()}}" data-confirm="Are you sure?"> |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
-- phpMyAdmin SQL Dump | |
-- version 3.5.2.2 | |
-- http://www.phpmyadmin.net | |
-- | |
-- Host: 127.0.0.1 | |
-- Generation Time: Apr 08, 2013 at 02:48 PM | |
-- Server version: 5.5.27 | |
-- PHP Version: 5.4.7 | |
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; |
<?php | |
/** | |
* Prevent specific plugins from being activated (or, in some cases, deactivated). | |
* | |
* Plugins that are to be deprecated should be added to the $disabled_plugins array. | |
* | |
* Plugins that should be un-deactivatable should be added to the $undeactivatable_plugins array | |
*/ | |
function cac_hide_plugins( $plugins ) { |
<?php | |
/* | |
Author: Jim Westergren & Jeedo Aquino | |
File: index-with-redis.php | |
Updated: 2012-10-25 | |
This is a redis caching system for wordpress. | |
see more here: www.jimwestergren.com/wordpress-with-redis-as-a-frontend-cache/ |
/* | |
* Updated to use the function-based method described in http://www.phpied.com/social-button-bffs/ | |
* Better handling of scripts without supplied ids. | |
* | |
* N.B. Be sure to include Google Analytics's _gaq and Facebook's fbAsyncInit prior to this function. | |
*/ | |
(function(doc, script) { | |
var js, | |
fjs = doc.getElementsByTagName(script)[0], |