First let's make sure HB is updated. Open up terminal for the following steps.
$ brew update
#!/bin/bash | |
## Description: Update bedrock packages | |
## Usage: update-bedrock [wp|plugins|themes] | |
## Example: "ddev update-bedrock" or "ddev update-bedrock wp" or "ddev update-bedrock plugins" or "ddev update-bedrock themes" | |
## ExecRaw: true | |
## HostWorkingDir: true | |
case $1 in | |
wp) |
<?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/[email protected]/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
I'll start off with letting you know this is a fork from someone else. However, for some bizarre reason, this is the one everyone finds, so I better get round to updating this. Credit to Cristiano#2233 for the original idea.
Also, I've had a lot of people saying the rules are to strict. If you pick all the rules here, you're right, it would be very strict. However the rules below are guidelines! They are there for you to pick the ones you desire, you can ignore ones you don't want. Hopefully they might help with rules you wouldn't have thought of otherwise.
<?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 <[email protected]> | |
* @license GPL-2.0+ |