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 | |
/** | |
* Description: WordPress enhancements from CSSLLC. | |
* Author URI: https://develop.calebstauffer.com | |
* Author: Caleb Stauffer | |
* Plugin URI: https://gist.github.com/crstauf/68b4d37ebdc0423d2275bce49527a2f4 | |
*/ | |
/** | |
* Action: wp_enqueue_scripts |
<?php | |
/** | |
* Description: WordPress helpers from CSSLLC. | |
* Author URI: https://develop.calebstauffer.com | |
* Author: Caleb Stauffer | |
* Plugin URI: https://gist.github.com/crstauf/46a29f046cfffcaf2829401ae0773c90 | |
*/ | |
if ( !function_exists( 'create_post_type_labels' ) ) { |
<?php | |
/** | |
* Abstract for CPT registrars. | |
* | |
* Description: Abstract class for WordPress CPT registrars from CSSLLC. | |
* Author URI: https://develop.calebstauffer.com | |
* Author: Caleb Stauffer | |
* Plugin URI: https://gist.github.com/crstauf/30ee826b9cd4f0044ba7b4febc3e9dbd | |
*/ |
#!/usr/bin/env bash | |
# =============================================================================== | |
# Script to install PHPUnit in the Local by Flywheel Mac app | |
# These packages are installed | |
# | |
# PHPUnit, curl wget, rsync, git, subversion and composer. | |
# | |
# WordPress is installed in the `/tmp/wordpress` directory for use by PHPUnit. | |
# The WordPress test suite is installed in the `/tmp/wordpress-tests-lib` directory. |
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
To remove a submodule you need to:
<?php | |
if(defined('WP_CRON_CUSTOM_HTTP_BASIC_USERNAME') && defined('WP_CRON_CUSTOM_HTTP_BASIC_PASSWORD')) { | |
function http_basic_cron_request($cron_request) { | |
$headers = array('Authorization' => sprintf('Basic %s', base64_encode(WP_CRON_CUSTOM_HTTP_BASIC_USERNAME . ':' . WP_CRON_CUSTOM_HTTP_BASIC_PASSWORD))); | |
$cron_request['args']['headers'] = isset($cron_request['args']['headers']) ? array_merge($cron_request['args']['headers'], $headers) : $headers; | |
return $cron_request; | |
} |
<?php | |
function get_combinations($arrays) { | |
$result = array(array()); | |
foreach ($arrays as $property => $property_values) { | |
$tmp = array(); | |
foreach ($result as $result_item) { | |
foreach ($property_values as $property_value) { | |
$tmp[] = array_merge($result_item, array($property => $property_value)); | |
} |
<?php | |
/** | |
* On-the-fly CSS Compression | |
* Copyright (c) 2009 and onwards, Manas Tungare. | |
* Creative Commons Attribution, Share-Alike. | |
* | |
* In order to minimize the number and size of HTTP requests for CSS content, | |
* this script combines multiple CSS files into a single file and compresses | |
* it on-the-fly. | |
* |