Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@oion
oion / move WordPress multisite
Created February 23, 2018 08:32 — forked from chrisdigital/move WordPress multisite
Moving WordPress multisite to a new domain (example shown copies production to development environment.)
//http://wordpress.org/support/topic/transfer-multisite-to-another-server
//http://halfelf.org/2012/moving-wordpress-multisite/
//http://codex.wordpress.org/Moving_WordPress
//http://www.realisingdesigns.com/2010/09/16/moving-the-domain-of-a-wordpress-multisite-install/
UPDATE wp_options SET option_value = replace(option_value, 'www.production.com', 'beta.development.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'www.production.com', 'beta.development.com');
UPDATE wp_posts SET post_content = replace(post_content, 'www.production.com', 'beta.development.com');
UPDATE wp_postmeta SET meta_value = replace(meta_value, 'www.production.com', 'beta.development.com');
@oion
oion / vanilla-jquery.md
Last active September 4, 2017 20:12 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@oion
oion / acf-helper-functions.php
Created April 21, 2016 10:12
Advanced Custom Fields Helper Functions
<?php
/**
* Custom functions for the use of the Advanced Custom Fields plugin.
* These are helper functions that you can include in your theme
* which make it easier to your ACF. The purpose is to allow the
* inclusion of ACF fields while also checking to see if ACF is
* installed and activated. With these functions you may be able to
* deactivate ACF for debugging and your theme will not throw
* errors.
*
@oion
oion / Colored infobox.js
Last active March 1, 2016 22:28
Colored Infobox
var boxText = document.createElement("div");
var myOptions = {
content: boxText,
disableAutoPan: false,
pixelOffset: new google.maps.Size(-175, -20),
boxStyle: {
opacity: 1,
width: "350px"
},
closeBoxMargin: "10px 10px 2px 2px",
@oion
oion / CSS.markdown
Last active September 1, 2015 15:02