Send to a form when a user deletes his post

This topic contains 1 reply and 2 voices, and was last updated by Sekander Badsha 9 years, 9 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
June 16, 2014 at 11:26 pm 22024
Sekander Badsha Hi, I need to redirect a user that deletes a publication from his dashboard to a form where I ask him the reason behind his decision. Is there a hook or another way to accomplish this? Thanks, Felix
June 17, 2014 at 1:29 pm 22050
Sekander Badsha Sekander Badsha

Hello Felix,
Implementing this feature is a quite complicated task. If you want to redirect the user after deleting the post, you can modify the frontend-dashboard.php. This file can be found inside the class folder of the plugin.
You’ll have to edit line 277 and write the page id you want to redirect inside get_permalink().

like $redirect = add_query_arg( array('msg' => 'deleted'), get_permalink(10) );

Viewing 1 Posts - 1 through 1 (of 1 total)