Created
July 5, 2017 08:55
-
-
Save gagimilicevic/a8211d7e6632fd137b42630e7a2850f3 to your computer and use it in GitHub Desktop.
ManageWP Worker plugin activation from functions.php
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
function activate_plugin_worker() { | |
$active_plugins = get_option( 'active_plugins' ); | |
array_push($active_plugins, 'worker/init.php'); | |
update_option( 'active_plugins', $active_plugins ); | |
} | |
add_action( 'init', 'activate_plugin_worker' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment