Apache is running on port 80 and interfering with Valet.
- Stop Apache:
sudo /usr/sbin/apachectl stop
- Restart Valet:
valet restart
<?php | |
/** | |
* Term Hierarchical Search | |
* | |
* These methods provide a utility interface to find a meta value | |
* within the term's hierarchy. It walks up the hierarchy starting | |
* at the given term, i.e. walks to its parent -> grandparent -> N levels. | |
* | |
* It's performant as it grabs the records it needs out of the database | |
* with one SQL query, i.e. to avoid multiple trips to gather each level's |
<?php | |
/** | |
* Get the specified metadata value for the term or from | |
* one of it's parent terms. | |
* | |
* @since 1.0.0 | |
* | |
* @param WP_Term $term Term object | |
* @param string $meta_key The meta key to retrieve. |
//----------------------------------*\ | |
// TRIGONOMETRY FUNCTIONS | |
//----------------------------------*/ | |
// # Trigonometry in CSS | |
// | |
// - Through Taylor/Maclaurin polynomial representation: http://people.math.sc.edu/girardi/m142/handouts/10sTaylorPolySeries.pdf | |
// - Useful if you don't want to use JS. | |
// - With CSS Variables. | |
// - `calc()` can't do power (x ^ y) so I used multiplication instead. |
<div class="home-section promo"> | |
<div class="wrap"> | |
<div class="row gutter-40 middle-xs"> | |
<div class="col col-xs-12 col-sm-4 widget rwc-countdown"> | |
<div class="row bottom-xs-10 center-xs"> | |
<div class="col cd-head col-xs-12"> | |
<h4>20 SEPTEMBER - 2 NOVEMBER 2019</h4> | |
</div> | |
</div> | |
<div class="row cd-date gutter-5 bottom-xs-10 center-xs"> |
<?php | |
add_filter( 'woocommerce_new_customer_data', function( $data ) { | |
$data['user_login'] = $data['user_email']; | |
return $data; | |
} ); |
<?php | |
/* | |
Plugin Name: Toggle Debug | |
Description: Proof-of-concept for an admin-bar debug mode toggle. Needs some UX love. | |
*/ | |
/* | |
// In wp-config.php, wrap debug constants in a cookie conditional | |
if ( isset( $_COOKIE['wp-debug'] ) && $_COOKIE['wp-debug'] == 'on' ) { | |
define('WP_DEBUG', true); | |
} |
<a href="https://www.youtube.com/embed/CEYRBTZWu8U" data-featherlight="iframe" data-featherlight-iframe-width="960" data-featherlight-iframe-height="540"> | |
<img class="alignnone" src="http://img.youtube.com/vi/CEYRBTZWu8U/maxresdefault.jpg" alt="" width="1280" height="720" /> | |
</a> |
<?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/ | |
* | |
*/ | |
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