Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author cmc3215

    (@cmc3215)

    While not an official Delete Me option, changing a single line of code will do what you ask. You can use the built-in WordPress Plugin Editor or a text editor like Notepad that comes with Windows.

    Inside the wp-content/plugins/delete-me/inc folder find the file delete_user.php

    Remove the single line of code near the bottom UNDER the comment line…
    // Redirect to landing URL
    The line to remove should start with ( is_admin() )

    Now just copy and paste this in place of the deleted line…

    wp_redirect( remove_query_arg( array( $this->info['trigger'], $this->info['nonce'] ), get_permalink() ) );

    This removes the query arguments Delete Me added and redirects back to the original post/page permalink. Redirect pages on the Delete Me Settings page will no longer function after replacing that line.

    Thread Starter JulieMarie

    (@juliemarie)

    Easy enough. Thanks for the prompt response!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirect to current page’ is closed to new replies.