Skip to content

Instantly share code, notes, and snippets.

add_action('wpmu_new_blog', 'wpb_create_my_pages', 10, 2);
function wpb_create_my_pages($blog_id, $user_id){
switch_to_blog($blog_id);
// create new page
$page_id = wp_insert_post(array(
'post_title' => 'Home',
'post_name' => 'home',
'post_content' => 'Welcome to our shop.',
// PouchDB 5.3.2-prerelease
//
// (c) 2012-2016 Dale Harvey and the PouchDB team
// PouchDB may be freely distributed under the Apache license, version 2.0.
// For all details and documentation:
// http://pouchdb.com
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.PouchDB = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return
<?php
class EvolutionAPI {
private $_url = 'https://apitest.evolutionpayroll.com/';
private $_token;
function __construct($username, $password) {
$ch = curl_init();
$fields = array(
'grant_type' => 'password',
'username' => $username,
<?php
class EvolutionAPI {
private $_url = 'https://apitest.evolutionpayroll.com/';
private $_token;
function __construct($username, $password) {
$ch = curl_init();
$fields = array(
'grant_type' => 'password',
'username' => $username,
$content = '\tThis variable is not set by me.\nCannot do anything about it.\n';
$replaced = preg_replace_callback(
'/\\\\(\\\\|n|r|t|v|f|"|[0-7]{1,3}|\x[0-9A-Fa-f]{1,2})/',
'replacer',
$content);
var_dump($replaced);
function replacer($match) {

Keybase proof

I hereby claim:

  • I am jonathonklem on github.
  • I am jonathonklem (https://keybase.io/jonathonklem) on keybase.
  • I have a public key whose fingerprint is 08EF 150A 3D04 35EA 1A0F D8D4 A178 2C28 FA96 3C58

To claim this, I am signing this object: