Last active
August 29, 2015 14:11
-
-
Save ezekg/6d46e3be8d3d2106ea99 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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