Redirect user after plugin activation (1 post)

  1. emille5000
    Posted 6 years ago #

    Hey guys and fellow developers,

    When a user installs and ACTIVATES my plugin, how can I redirect user to my plugin page (e.g. admin.php?page=myplugin/myplugin_somepage.php) after plugin was successfully activated?

    The reason I am asking this is because, as a WordPress user, I find it extremely frustrating every time I install and activate some new plugin: "OK, I've installed and activated this XYZ plugin. What's next? Where should I go now? Where is more info on using the plugin? How to use the plugin?"

    I don't want this to happen to my plugin users. I want to guide them where to go and what to do next by either redirecting them to one of my plugin pages, or displaying them any kind of message (alert box, pop-up, hover-ad, thick box..anything).

    I'm already using register_activation_hook like this:

    function activate_myplugin()
    //create and populate DB tables

    Any suggestions, ideas?

    Take care guys and thanks for your help.


Topic Closed

This topic has been closed to new replies.

About this Topic