Last active
November 17, 2016 11:40
-
-
Save ajitbohra/3f53334b74bb459d87df143c300f28ce to your computer and use it in GitHub Desktop.
Wordpress Generate Plugin Activation Link
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 | |
/* | |
* Generate a Link to Activate a Plugin in WordPress | |
*/ | |
$path = 'woocommerce/woocommerce.php'; | |
$link = wp_nonce_url(admin_url('plugins.php?action=activate&plugin='.$path), 'activate-plugin_'.$path); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment