Skip Navigation

[Resolved] Action hook for when a form in the admin area submits a new custom post.

This support ticket is created 4 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 1 voice.

Last updated by steveA-6 4 years, 8 months ago.

Author
Posts
#1628601

Tell us what you are trying to do?
Ultimately want to capture a new post-type being saved, but be able to tell whether anything changed from the previously saved version. I can use the wordpress post_save_xxx which works fine, but I need to find a way to get at the data before it is saved. I am only using the admin area to create and update Toolset post types, so was hoping I might be able to hook into the form submit event. Although I have tried cred_before_save_data, but that doesn't seem to work (only works with toolset forms maybe?).

Any ideas would be appreciated.

Is there any documentation that you are following?
Wordpress codex and toolset hooks documentation.

Is there a similar example that we can see?

What is the link to your site?
hidden link

#1628673

Sorry. Found the wordpress post_updated hook. That should do the trick.

My issue is resolved now. Thank you!