How to set up redirection after entry is deleted in front-end?

By: Pablo Tires | Asked: 10/30/2024
ForumsCategory: How-toHow to set up redirection after entry is deleted in front-end?
Pablo Tires asked 3 weeks ago
Hi there, I'm looking into setting up the redirection URL to the platform homepage after an entry (converted into post) is deleted from the front-end. It currently takes me to this URL. /wp-admin/admin-ajax.php?action=frm_entries_destroy&entry=3478&redirect=current&nonce=de3311ecbb I would appreciate any assistance on this matter. Thanks,
Bobby Clapp replied 3 weeks ago

Does using the action trigger "delete" change things? https://formidableforms.com/knowledgebase/using-add-form-actions/

1 Answers
Victor Font answered 3 weeks ago
Deletions don't actually take place on the front end because the data resides on the server. When you you delete your entry from the front end, you trigger an Ajax call that triggers a function on the back end to delete the entry. You can use the frm_after_destroy_entry hook to run a custom PHP function to redirect tour user to the home page. https://formidableforms.com/knowledgebase/frm_after_destroy_entry/

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right