sudo find . -type f -exec chmod 644 {} \;
sudo find . -type d -exec chmod 755 {} \;
sudo chown -R git-auto-deploy:git-auto-deploy .git;
sudo find .git -type f -exec chmod 664 {} \;
sudo find .git -type d -exec chmod 775 {} \;
#!/usr/bin/env bash | |
VERSION=2.0.13; | |
# Download this file, rename it to "rare", and place it in your bin directory (for mac it'll be something like usr/local/bin/rare). | |
# For OSX you could try this CURL command to install it: | |
# curl https://gist.githubusercontent.com/yosukehasumi/d0c905da78229122e7c1bb34a0fc92a7/raw/rare.sh > /usr/local/bin/rare; | |
# sudo chmod 755 /usr/local/bin/rare; | |
# | |
# To use this script, cd into your project directory and in command line type: |
#!/bin/bash | |
# USAGE: addlocalhost mycustomsite.localhost /path/to/document/root/ | |
HNAME=$1 | |
HPATH=$2 | |
HOSTSFILE="/etc/hosts" | |
HTTPSITESFILE="/usr/local/etc/apache2/2.4/extra/httpd-vhosts.conf" | |
if ! [[ -n $HNAME || -n $HPATH ]]; then |
sudo find . -type f -exec chmod 644 {} \;
sudo find . -type d -exec chmod 755 {} \;
sudo chown -R git-auto-deploy:git-auto-deploy .git;
sudo find .git -type f -exec chmod 664 {} \;
sudo find .git -type d -exec chmod 775 {} \;
<?php | |
$items = array( | |
array( | |
'label' => 'Core', | |
'name' => 'core', | |
'items' => array( | |
'Wordpress is up to date', | |
) | |
), | |
array( |
<?php | |
//--------------------------------------------------------------- | |
/** | |
* Registers an editor stylesheet for the theme. | |
*/ | |
function custom_theme_add_editor_styles() { | |
add_editor_style( 'editor-style.css' ); | |
} | |
add_action( 'admin_init', 'custom_theme_add_editor_styles' ); | |
//--------------------------------------------------------------- |
-- Reset all users' metabox placement. This is useful when changing location of existing ACF field groups. | |
-- Run these separately, and replace the table prefix and meta_keys with your own. | |
-- Search for current metabox values: | |
SELECT * | |
FROM wp_usermeta | |
WHERE meta_key | |
LIKE 'meta%' | |
-- Look for the meta-box-order_[post_type_slug] and metaboxhidden_[post_type_slug] keys. | |
-- Run the reset on the necessary rows based on the post type you are targeting. |