Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

Dervila on "Need hook which fires when user hits "edit" button on custom post"

$
0
0

I need to run a function right after the user clicks "edit" on a custom post. {$old_status}_{$new_status} won't help because those and their relations fire after the custom post is edited. I need the function to run before the custom post is edited

Here's the detailed explanation: I have a list of members of a group, where the member custom post was created with the Pods plugin. My users are members of that group, and so have access to the list so they can create/modify/delete their data. Some of my users are barely computer literate, and easily confused. I don't want a user editing someone else's member data by mistake. So I want to compare the current user's user id to the member post's user id to make sure they match. If they don't, the user is denied access.

I have looked all over the WordPress site, and even looked through the hooks listed for WordPress 3.9 on Adam Brown's site. I'm afraid I'm stuck.


Viewing all articles
Browse latest Browse all 8245

Trending Articles