PDA

View Full Version : Post delete hook question.


RagingPenguin
05-08-2008, 11:51 PM
Ok, search revealed nothing, so I ask...

I have been trying to utilize editpost_delete_complete to process records in a custom table that reference the deleted post. However, it never fires, or I'm not using the right varname to get the deleted postid. I've tried $postinfo['postid'], $post['postid'], and $postid. Heck, I may not even be using the right hook, I don't know.

Any help would be appreciated.

calorie
05-09-2008, 01:02 AM
Might be scope. Are you using $postinfo['postid'] inside a function? If so, try globaling $postinfo like so inside the function:

global $postinfo;