[wp-trac] [WordPress Trac] #61448: Add a 'pre_delete_user' filter to allows some checks to potentially prevent user deletion

WordPress Trac noreply at wordpress.org
Sat Jun 15 13:55:12 UTC 2024


#61448: Add a 'pre_delete_user' filter to allows some checks to potentially prevent
user deletion
-------------------------+------------------------------
 Reporter:  axi35        |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Users        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by ramon fincken):

 I like your explanation about other hooks :)

 As a sidenote: you _can_ filter the capabilities of someone during
 runtime, so you can revoke "delete_user" capabilities on a single PHP
 call.

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


More information about the wp-trac mailing list