Use this file to setup a test WordPress site, includes MySQL and PHPMyAdmin.
WordPress will load up on localhost:8000 PHPMyAdmin will load up on localhost:8080
# To Start
$ docker-compose up -d
# WP Config Settings | |
wp config set AUTOMATIC_UPDATER_DISABLED true | |
wp config set CORE_UPGRADE_SKIP_NEW_BUNDLED true | |
# Changing Site URL to https | |
wp option get siteurl | sed "s/http:/https:/g" | xargs -I {} wp option update siteurl {} | |
wp option get home | sed "s/http:/https:/g" | xargs -I {} wp option update home {} | |
# Install themes & plugins |
Automatically deletes old emails that match the specified label.
LABEL_TO_DELETE
: the label that should be have old messages deleted*.log | |
wp-config.php | |
wp-content/advanced-cache.php | |
wp-content/backup-db/ | |
wp-content/backups/ | |
wp-content/blogs.dir/ | |
wp-content/cache/ | |
wp-content/upgrade/ | |
wp-content/uploads/ | |
wp-content/wp-cache-config.php |
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl |
define('WP_DEBUG', true); | |
define('WP_DEBUG_DISPLAY', false ); | |
define('SAVEQUERIES', true); |
<? | |
/** | |
* Repeatable Custom Fields in a Metabox | |
* Author: Helen Hou-Sandi | |
* | |
* From a bespoke system, so currently not modular - will fix soon | |
* Note that this particular metadata is saved as one multidimensional array (serialized) | |
*/ | |
function hhs_get_sample_options() { |
<?php | |
/* ------------------------------------------------------------------------ * | |
* Machine Custom Post Type | |
* ------------------------------------------------------------------------ */ | |
/** | |
* Creates a new custom post type for sewing machines. | |
* | |
*/ |