Action
post_restropress_addon_updater_setup
On this page
Fires after the extension updater has registered its plugin data.
Runs at the end of the RestroPress_Addon_Updater constructor, after the extension's plugin data has been stored in the global $edd_plugin_data. This array is keyed by the plugin slug of each extension that uses the updater.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$edd_plugin_data | array | Plugin data of all extensions registered with the updater, keyed by slug. |
Example#
function my_addon_updater_setup( $edd_plugin_data ) {
foreach ( $edd_plugin_data as $slug => $data ) {
error_log( 'Updater registered for ' . $slug );
}
}
add_action( 'post_restropress_addon_updater_setup', 'my_addon_updater_setup', 10, 1 );
Notes#
Fires once per updater instance, so a callback runs once for each extension that creates an updater.
Source#
Fired from:
includes/class-rpress-addon-updater.php(line 48), inRestroPress_Addon_Updater::__construct()
Was this page helpful?
