Skip to main content
9 events
when toggle format what by license comment
Sep 20, 2016 at 14:26 comment added Andy Macaulay-Brook Ah - of course - you mean that if you are on the post edit page and delete it, then deleting the user actually deletes the post before the original delete function gets to it. Try hooking into deleted_post instead, so that you delete the user after deleting the post.
Sep 20, 2016 at 14:17 comment added Vishal Tanna Just One Editing in answer that use wp_redirect('your desire path'); so it wil not display message access denied
Sep 20, 2016 at 14:06 comment added Andy Macaulay-Brook Cool - no problem!
Sep 20, 2016 at 14:06 vote accept Vishal Tanna
Sep 20, 2016 at 14:06 comment added Vishal Tanna Yes it is reducing the infinite loop... Thanks For The Help...
Sep 20, 2016 at 12:57 comment added Andy Macaulay-Brook Removing the hooked function should fix that - question edited.
Sep 20, 2016 at 12:57 history edited Andy Macaulay-Brook CC BY-SA 3.0
Updated answer to address comments
Sep 20, 2016 at 12:52 comment added Vishal Tanna I got ERR_EMPTY_RESPONSE so it goes to infinite loop.
Sep 20, 2016 at 12:17 history answered Andy Macaulay-Brook CC BY-SA 3.0