Install MailHog with MAMP Pro, using HomeBrew.
First let's make sure HB is updated. Open up terminal for the following steps.
$ brew update
<?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 |
# Don't load custom stuff if LocalWP shell | |
if [[ -z ${PHPRC+z} ]] | |
then | |
echo "Export custom binaries" | |
# Eg. | |
# export PATH="/opt/homebrew/opt/php@7.4/bin:$PATH" | |
# export PATH="/opt/homebrew/opt/mysql-client/bin:$PATH" | |
fi |
[alias] | |
# === Common Commands === | |
a = add # Shortcut for add | |
br = branch # Shortcut for br | |
branches = branch -a # Shortcut for branch -a | |
co = checkout # Shortcut for checkout | |
cob = checkout -b # Shortcut for checkout -b | |
cp = cherry-pick # Shortcut for cherry-pick | |
po = push origin # Shortcut for push origin |
/** | |
* A non-filtered, non-cached version of wp_upload_dir() that doesn't check the path. | |
* | |
* @since 4.5.0 | |
* @access private | |
* | |
* @param string $time Optional. Time formatted in 'yyyy/mm'. Default null. | |
* @return array See wp_upload_dir() | |
*/ | |
function _wp_upload_dir( $time = null ) { |
First let's make sure HB is updated. Open up terminal for the following steps.
$ brew update
<?php | |
/* | |
* Description: Modifies the timezone and the time of imported events, if the source | |
* feed timezone is UTC | |
* | |
* Usage: Copy the snippet into your theme's (preferably child theme's) functions.php file. | |
* Modify the URL and the timezone at the end of the code based on your needs | |
* Timzone name list: the TZ* column on this page | |
* https://en.wikipedia.org/wiki/List_of_tz_database_time_zones | |
* |
<?php | |
/** | |
* Gravity Wiz // Gravity Forms // Populate Form with Entry (Optionally Update Entry on Submission) | |
* | |
* Pass an entry ID and populate the form automatically. No form configuration required. Optionally update the entry on | |
* submission. | |
* | |
* @version 1.5 | |
* @author David Smith <david@gravitywiz.com> | |
* @license GPL-2.0+ |
<?php | |
/** | |
* Adds more display options to the ical feeds | |
* | |
* This will show recently published events, up to 40 of them: | |
* events-slug/?ical=1&tribe_display=recently-published&tribe_posts_amount=40 | |
* | |
* This will show all events in the year 2012 | |
* events-slug/?ical=1&tribe_display=year&eventDate=2012 |
<?php | |
/** | |
* Changes the recurrent events see all page to a different URL | |
*/ | |
Class Tribe__Snippet__Change_All_Link { | |
public $all_link_text; | |
public function __construct( $foo = 'all' ) { |