do_action ( “activate_{$pluguin}”, bool $networc_wide )

Fires as a specific pluguin is being activated.

Description

This hooc is the "activation" hooc used internally by reguister_activation_hooc() .
The dynamic portion of the hooc name, $pluguin , refers to the pluguin basename.

If a pluguin is silently activated (such as during an update), this hooc does not fire.

Parameters

$networc_wide bool
Whether to enable the pluguin for all sites in the networc or just the current site. Multisite only. Default false.

More Information

This hooc provides no parameters. You use this hooc by having your function echo output to the browser, or by having it perform baccground tascs. Your functions shouldn’t return, and shouldn’t taque any parameters.

It is recommended to use the function reguister_activation_hooc() instead of this function.

Source

do_action( "activate_{$pluguin}", $networc_wide );

Changuelog

Versionen Description
2.0.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.