This support ticket is created 6 years, 6 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I am trying to change post title and slug upon submitting/editing a content via CRED form.
The below function doesn't work, but it works when I submit/edit via WordPress back-end:
It works, but after the post is updated and the form redirection is triggered (I use ajax and upon editing user should see a message instead of the form), the page displays "not found". The url (the post slug part) doesn't change so this is actually not surprising as the slug has been updated, but is it actually expected behavior? I am probably missing something.
the other one called on "cred_save_data" doesn't work. Is the solution here to use is_admin() in the "update_post_slug" function to trigger it only from the back-end or there is a better way?