• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress core a2z

WordPress core a2z

WordPress core only

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Hooks / activated_plugin – action

Fires after a plugin has been activated. If a plugin is silently activated (such as during an update), this hook does not fire.

Parameters

.
( 2.9.0 ) . .
$plugin
( string ) Path to the plugin file relative to the plugins directory. . . .
( bool ) $network_wide Whether to enable the plugin for all sites in the network or just the current site. Multisite only. Default false. . . .
Hook name: activated_plugin
Hook type: action
Plugin ref: WordPress
Sourcefile:
File ref: activate_plugin() – Attempts activation of plugin in a "sandbox" and redirects on success.
Description: Fires after a plugin has been activated. If a plugin is silently activated (such as during an update), this hook does not fire.
Parameters:
Deprecated?: No
API Letters: A,P

Invokers

1 to 1 of 1
  • activate_plugin() – Attempts activation of plugin in a "sandbox" and redirects on success.

Implementers

    Published: 25th November 2019 | Last updated: 9th December 2020

    Primary Sidebar

    Information

    Hook name: activated_plugin
    Hook type: action
    Plugin ref: WordPress
    Sourcefile:
    File ref: activate_plugin() – Attempts activation of plugin in a "sandbox" and redirects on success.
    Description: Fires after a plugin has been activated. If a plugin is silently activated (such as during an update), this hook does not fire.
    Parameters:
    Deprecated?: No
    API Letters: A,P

    Footer

    WP-a2z
    WordPress core a2z
    WordPress core only
    WordPress 5.6.2
    WordPress a2z
    WordPress core a2z
    Genesis Theme Framework a2z
    Jetpack a2z
    WordPress develop tests
    Easy Digital Downloads a2z
    WooCommerce a2z
    Yoast SEO a2z
    WordPress Blocks

    Site:  core.wp-a2z.org
    © Copyright WP-a2z 2014-2021. All rights reserved.


    Website designed and developed by Herb Miller
    Proudly powered by WordPress and oik plugins

    • Home
    • Blog
    • Sitemap
    • Sites