This is more of a theory question than a question with a direct answer.
I’ve been working with different actions for firing functions when a post is updated or deleted and when users are updated or deleted. For the actions, publish_post
and before_delete_post
for the posts and personal_options_update
, edit_user_profile_update
and delete_user
for the users.
With post update you get access to the values that are currently set and the values the new values at the same time to make any changes you see fit before anything happens. With user update you only have access to the new information and only after it’s already been set.
Is there a reason for this difference or is this just inconsistent?
…and don’t get me started on publish_{custom_post_type} vs before_delete_post.