• After deleting a post, is it possible to reload the current page, rather than redirecting back to the home page?

Viewing 1 replies (of 1 total)
  • Plugin Author Jupitercow


    add_filter( 'sewn/post_delete/redirect_success', 'custom_post_delete_redirect_success' );
    function custom_post_delete_redirect_success( $url ) {
        // Change $url
        // For example: $url = get_permalink();
        redirect $url;
Viewing 1 replies (of 1 total)
  • The topic ‘redirecting to home page?’ is closed to new replies.