WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
578 | /** |
579 | * Fires after a plugin has been activated in activate_plugin() when the $silent parameter is false. |
580 | * |
581 | * @since 2.9.0 |
582 | * |
583 | * @param string $plugin Plugin path to main plugin file with plugin data. |
584 | * @param bool $network_wide Whether to enable the plugin for all sites in the network |
585 | * or just the current site. Multisite only. Default is false. |
586 | */ |
587 | do_action( 'activated_plugin', $plugin, $network_wide ); |
588 | } |
589 |
|
590 | if ( ob_get_length() > 0 ) { |
591 | $output = ob_get_clean(); |
592 | return new WP_Error('unexpected_output', __('The plugin generated unexpected output.'), $output); |
593 | } |
594 | ob_end_clean(); |
595 | } |
596 |
|