Generating a WordPress plugin activation link url

21/04/2019 | By Dev | Filed in: WordPress.

As I might need it again I’ve put together a gist for a WordPress function that will generate a plugin activation url like the ones WordPress will generate in the plugins administration screen

Activate link

The function will require a string input like my-plugin/my-plugin.php which can be hard-coded knowing a specific plugin folder and main plugin file information or using another function that will check for an installed plugin using its title.

Source: https://www.theaveragedev.com/generating-a-wordpress-plugin-activation-link-url/


Comments are closed here.