Skip to content

Instantly share code, notes, and snippets.

View E-VANCE's full-sized avatar
🌳
Huggin'

Henning Orth E-VANCE

🌳
Huggin'
View GitHub Profile
@E-VANCE
E-VANCE / Movefile
Last active August 6, 2017 10:18
Example Movefile for Wordmove with SSH (VVV to DigitalOcean)
global:
sql_adapter: "default"
local:
vhost: "http://PROJECT.dev"
wordpress_path: "/srv/www/PROJECT/htdocs" # use an absolute path here
database:
name: "PROJECT_DB_NAME"
user: "external"
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(
@E-VANCE
E-VANCE / functions.php
Created June 16, 2016 09:33
Hide/Disable Yoast SEO's nagging display features in the WordPress backend
<?php
/**
* Disable Yoast SEO's darn admin bar icon
*/
function yoast_hide_admin_bar() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu('wpseo-menu');
}
@E-VANCE
E-VANCE / extras.php
Created October 30, 2015 16:40
JSON sitemap generation for use with UnCSS (+ Sage theme)
<?php
/**
* Generate JSON sitemap for use with UnCSS
*/
function show_sitemap() {
if (WP_ENV === 'development' && isset($_GET['show_sitemap'])) {