ap_addon_activation_hook( string $addon, string|array $cb )
Description #
Register a callback function which triggred after activating an addon.
Parameters #
- $addonstring (Required) Name of addon.
- $cbstring | array (Required) Callback function name.
Source #
File: includes/functions.php
function ap_addon_activation_hook( $addon, $cb ) { global $ap_addons_activation; $addon = wp_normalize_path( $addon ); $ap_addons_activation[ $addon ] = $cb; }
Expand full source code Collapse full source code View on GitHub: includes/functions.php:1949
Add your comment