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
| #!/bin/bash | |
| mkdir wordpress-site && cd wordpress-site | |
| touch docker-compose.yml | |
| cat > docker-compose.yml <<EOL | |
| my-wpdb: | |
| image: mariadb | |
| ports: |
| 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 |