Created
February 20, 2020 16:23
-
-
Save seothemes/3e31817793a52058de34a1fd07892553 to your computer and use it in GitHub Desktop.
Auto install plugins with Genesis
This file contains hidden or 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 | |
add_action( 'after_switch_theme', 'startup_install_plugins' ); | |
/** | |
* Install plugin dependencies. | |
* | |
* @since 1.2.0 | |
* | |
* @return void | |
*/ | |
function startup_install_plugins() { | |
$plugins = genesis_get_config( 'plugins' ); | |
foreach ($plugins as $count => $plugin ) { | |
genesis_onboarding_install_dependencies( $plugins, $count ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment