Home Forums Plugin Support WP User Frontend Pro Send to a form when a user deletes his post

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  Sekander Badsha 4 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22024

    Felix
    Member
    Post count: 6

    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

    #22050

    Sekander Badsha
    Member
    Post count: 2067

    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 2 posts - 1 through 2 (of 2 total)

The topic ‘Send to a form when a user deletes his post’ is closed to new replies.