Created
November 20, 2018 12:21
-
-
Save vmanthos/f58dcf571e681d4a9c7cc39901eae57d 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
function activate_plugin_via_php() { | |
$active_plugins = get_option( 'active_plugins' ); | |
array_push($active_plugins, 'cloudflare-flexible-ssl/plugin.php'); | |
update_option( 'active_plugins', $active_plugins ); | |
} | |
add_action( 'init', 'activate_plugin_via_php' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment