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
Search and replace | |
https://wp-cli.org/commands/search-replace/ | |
wp search-replace | |
wp search-replace 'http://example.dev' 'http://example.com' | |
Optmize database | |
https://wp-cli.org/commands/db/optimize/ | |
wp db optimize | |
Repair database |
<?php | |
/** | |
* Make sure the function does not exist before defining it | |
*/ | |
if( ! function_exists( 'remove_class_filter' ) ){ | |
/** | |
* Remove Class Filter Without Access to Class Object | |
* | |
* In order to use the core WordPress remove_filter() on a filter added with the callback |
<?php | |
/* | |
Plugin Name: SMTP Configuration | |
Plugin URI: | |
Description: Force WordPress to use SMTP settings for AWS SES. | |
Version: 1.0 | |
Author: Matt van Andel | |
Author URI: http://mattvanandel.com | |
License: GPLv2 or later | |
*/ |
on write_to_file(this_data, target_file, append_data) | |
try | |
set the target_file to the target_file as string | |
set the open_target_file to open for access file target_file with write permission | |
if append_data is false then set eof of the open_target_file to 0 | |
write this_data to the open_target_file starting at eof | |
close access the open_target_file | |
return true | |
on error | |
try |
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
var webpack = require('webpack'); | |
var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
var path = require('path'); | |
var folders = { | |
APP: path.resolve(__dirname, '../app'), | |
BUILD: path.resolve(__dirname, '../build'), | |
BOWER: path.resolve(__dirname, '../bower_components'), | |
NPM: path.resolve(__dirname, '../node_modules') | |
}; |
<?php | |
acf_form_head(); // Place this before wp_header(); | |
$options = array( | |
'post_id' => 'user_'.$current_user->ID, | |
'field_groups' => array($form_group_ID), // $form_group_ID is the post id of the form group to show. | |
'submit_value' => 'Update Profile' | |
); | |
echo '<p>Your username is <b>'.$current_user->user_login.'</b>. This cannot be changed.</p>'; | |
acf_form( $options ); // http://support.advancedcustomfields.com/forums/topic/front-end-and-custom-user-meta/ | |
?> |
<?php | |
/* | |
* The MIT License (MIT) | |
* | |
* Copyright (c) 2014 Rob Dunham | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights |
This Gist presents a new design of class-based object construction in ES6 that does not require use of the two-phase @@create protocol.
One of the characteristics of this proposal is that subclass constructors must explicitly super invoke their superclass's constructor if they wish to use the base class' object allocation and initialization logic.
An alternative version of this design automatically invokes the base constructor in most situations.