[wp-trac] [WordPress Trac] #62669: deleted_plugin hook not firing?

WordPress Trac noreply at wordpress.org
Mon Dec 9 15:16:16 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                   |  Resolution:
 Keywords:  reporter-feedback close  |     Focuses:
-------------------------------------+------------------------------
Changes (by TobiasBg):

 * keywords:   => reporter-feedback close


Comment:

 I'm not too familiar with WP-CLI, but using `--skip-plugins` as an
 argument means that loading plugins is skipped, so your `add_action` call
 is never called?!

 Or of course, if your plugin is deactivated before it's deleted (in a
 separate request/call), its action hook handlers also won't be run.

 That said, this might be a question more suitable for the WP-CLI "Issues"
 or "Discussions" section on https://github.com/wp-cli/wp-cli.
 Of course, if this is found to be a problem with WordPress Core, this can
 be revisited here.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62669#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list