Problem:
The user would like to run custom code when a post is deleted. He tried the cred_redirect_after_delete_action action but it does not help him.
Solution:
Because we need to do some logic that depends on the post data, which is already deleted at this stage, we need to use another action/filter.
We suggest using a Post Edit form that will change the status of the post to "Trash" and rely on the cred_save_post hook.
Relevant Documentation:
https://toolset.com/?page_id=19753#cred_save_data
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.
Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - | - | 9:00 – 13:00 |
14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - | - | 14:00 – 18:00 |
Supporter timezone: Africa/Casablanca (GMT+01:00)
Este tema contiene 1 respuesta, tiene 2 mensajes.
Última actualización por hace 4 años, 1 mes.
Asistido por: Jamal.