# wp-cli: http://wp-cli.org/ | |
wp role list --fields=role --format=csv \ | |
| tail -n +2 \ | |
| xargs -I {} wp user create "user-{}" "{}@example.com" --role={} |
# Steps we will take: | |
# 1. Change Local (Docker Machine) image type (this will take a bit) | |
# 2. Resize image | |
# 3. Resize partion | |
# | |
# Also see: https://docs.docker.com/articles/b2d_volume_resize/ | |
# IMPORTANT: Make sure Local is not running! | |
VM_NAME="local-by-flywheel" | |
NEW_DISK_SIZE=50000 |
var Circle = { | |
radius : 0, | |
create : function(radius) { | |
// Creating prototypal linkage using Object.create | |
var obj = Object.create(this); | |
obj.radius = radius; | |
return obj; | |
}, | |
area : function() { |
#!/bin/bash | |
# | |
## store the arguments given to the script | |
read oldrev newrev refname | |
## Where to store the log information about the updates | |
LOGFILE=./post-receive.log | |
# The deployed directory (the running site) | |
DEPLOYDIR=/directory/to/deploy/to | |
GITDIR=/directory/above/hooks/repo_name.git |
<?php | |
use DOMDocument; | |
class MyDom extends DOMDocument { | |
/** | |
* Initiate the DOMDocument object, ensuring UTF-8 | |
* | |
* @see http://stackoverflow.com/a/8218649/1883421 | |
* |
Unfortunately, we can't support every person's specific or custom implementations for CMB2. Github issues are reserved for confirmed bug reports and occasional feature requests. Please review the CONTRIBUTING.md for support suggestions. Please also review the additional resources listed at the bottom of that document, as the solution you're looking for may already be present.
The taxonomy fields are not intended to provide an arbitrary list of terms to pick from, but are intended to be a replacement for the default taxonomy metaboxes. I.e. they are meant to set the taxonomy terms on an object. Any other use of these types will be hacky and/or buggy. I suggest looking at building a custom field type for this: https://github.com/WebDevStudios/CMB2/wiki/Tips-&-Tricks#a-dropdown-for-taxonomy-terms-which-does-not-set-the-term-on-the-post
Thank you for
Moved this over here.
<?php | |
/** | |
* Add the post excerpt to the results in the Google Analytics Top Content Widget. | |
* | |
* @param string $item_html The item html. | |
* @param array $page The page result object from Google Analytics. | |
* @param WP_Post|null $wppost The WordPress post object (if we have it). | |
* | |
* @return string The modified item html. | |
*/ |
alert( [+[++[+[]][+[]]+[]+[[]+[][+[]]][+[]][++[++[++[+[]][+[]]][+[]]][+[]]]+[++[+[]][+[]]+[]][+[]]+[+[]]+[+[]]+[+[]]][+[]]+[]][+[]][+[]]+' <'+ ++[++[++[[]][+[]]][+[]]][+[]] +' '+[[][+[]]+[]][+[]][+[]] ) |