[wp-trac] [WordPress Trac] #62669: deleted_plugin hook not firing?
WordPress Trac
noreply at wordpress.org
Mon Dec 9 14:47:50 UTC 2024
#62669: deleted_plugin hook not firing?
--------------------------+-----------------------------
Reporter: dkrocket | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.7.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
We have 2 hooks in one of our plugins:
add_action('deactivated_plugin', array(&$this, 'deactivated_plugin_log'));
add_action('deleted_plugin', array($this, 'deleted_plugin_log'));
When we call `wp cli plugin delete $plugin_name --skip-plugins --skip-
themes --skip-packages`, the `deactivated_plugin` hook is firing. however,
the `deleted_plugin` hook is not.
We've also tried calling `wp cli plugin deactivate --uninstall` and the
hook does not appear to be firing there either.
Please let me know if there are any additional details that can help
reproduce.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62669>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list