• karthikwpress

    (@karthikwpress)


    Is there a way your plugin can get notified when other plugins are getting installed?
    We can get a list of already installed plugins, but I am asking more about getting notified in real time, when a new plugin gets installed.
    I am asking about installation and not activation.

    Thanks, WP forum!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I can’t find a hook but there must be one, because this plugin tracks installs (among other things), so unless someone has a more direct suggestion, download https://wordpress.org/plugins/stream/ and look at the code to see how it does it.

    Moderator bcworkz

    (@bcworkz)

    The WP_Plugin_Upgrader class is used even just for installing a new plugin, so the “upgrader_process_complete” complete action can be used to track anything related to the class. The specifics are passed in the second parameter.

    Of course this only works for plugins installed through the WP interface. If someone uploads the plugin files via FTP, I see no way to track this short of constantly monitoring the plugins folder for changes.

    Thread Starter karthikwpress

    (@karthikwpress)

    Thank you Steve Stern, and bcworkz.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Plugin installation notification’ is closed to new replies.