upgrader_clear_destination WordPress Filter Hook
The upgrader_clear_destination hook is called when the destination folder for an upgrade is cleared. This hook allows you to take any necessary actions before the destination folder is cleared. For example, you may want to save any custom data or files that are in the folder before it is deleted.
apply_filters( 'upgrader_clear_destination', true|WP_Error $removed , string $local_destination , string $remote_destination , array $hook_extra ) #
Filters whether the upgrader cleared the destination.
Parameters
Source
Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |