Skip to content

Instantly share code, notes, and snippets.

@ezekg
Last active August 29, 2015 14:11
Show Gist options
  • Save ezekg/6d46e3be8d3d2106ea99 to your computer and use it in GitHub Desktop.
Save ezekg/6d46e3be8d3d2106ea99 to your computer and use it in GitHub Desktop.
<?php
$blueprint = json_decode( '{
"sample": {
"themes": [
"automattic/_s"
],
"mu_plugins": {
"wds-required-plugins": "https://github.com/WebDevStudios/WDS-Required-Plugins.git"
},
"plugins": {
"clef": "https://github.com/clef/wordpress/archive/master.zip",
"cmb2": "CMB2"
},
"options": {
"active_theme": "_s"
},
"defines": {
"WP_CACHE": false
}
}
}', true );
/**
* Loop through blueprint
*/
foreach ( $blueprint as $key => $value ) {
// Continue looping through $value if it's another map, or just use $value
foreach ( $map as $k => $v ) {
// etc.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment