Title: Redirection url customization
Last modified: June 7, 2019

---

# Redirection url customization

 *  Resolved [rahulsatija](https://wordpress.org/support/users/rahulsatija/)
 * (@rahulsatija)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/redirection-url-customization/)
 * Dear Team
 * I wan to know any hook or method that change redirect Url on clicking on “Create
   revision Draft” link below post list page.

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Thread Starter [rahulsatija](https://wordpress.org/support/users/rahulsatija/)
 * (@rahulsatija)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/redirection-url-customization/#post-11614359)
 * I saw this function in Revisions.php file,
 * wp_safe_redirect( admin_url( ‘post.php?action=edit&post=’ . $linkedPostId ) );
 * But I need to add this in theme functions.php file.
 * Do not want to make changes in the plugin.
 *  Plugin Author [themastercut](https://wordpress.org/support/users/themastercut/)
 * (@themastercut)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/redirection-url-customization/#post-11614769)
 * Hello [@rahulsatija](https://wordpress.org/support/users/rahulsatija/), Jacob
   here.
 * I think it will be fair enough if we will add this hook on the next update.
    
   Stay tuned. I will give you more information here soon.
 * Best regards.
 *  Thread Starter [rahulsatija](https://wordpress.org/support/users/rahulsatija/)
 * (@rahulsatija)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/redirection-url-customization/#post-11615380)
 * Thanks Jacob
 * For quick response.
 *  Plugin Author [themastercut](https://wordpress.org/support/users/themastercut/)
 * (@themastercut)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/redirection-url-customization/#post-11621837)
 * Hello again.
    New version 2.5.91 is ready to download.
 * We added filter hook for you.
    It’s called **tmc/revisionmanager/revisions/createLinkedPost/
   redirectUrl** and takes two parameters:
 * 1) current redirect url
    2) new post ID
 * Filter should return new redirect URL.
 * Best regards,
    Jacob.
 *  Thread Starter [rahulsatija](https://wordpress.org/support/users/rahulsatija/)
 * (@rahulsatija)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/redirection-url-customization/#post-11625340)
 * Thanks for the support.
 * Can you please sample code, how can I override this filter hook in my theme functions.
   php
 * I am trying but facing issue. Sample code can help me alot.
 * Thanks in Advance
 *  Thread Starter [rahulsatija](https://wordpress.org/support/users/rahulsatija/)
 * (@rahulsatija)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/redirection-url-customization/#post-11625374)
 * This is sample code I am trying.
 * Please correct me.
 * add_filter( ‘tmc/revisionmanager/revisions/createLinkedPost/redirectUrl’, ‘revision_redirect’,
   11, 2 );
 * function revision_redirect( $redirectUrl, $linkedPostId ) {
    // your custom changes
   to $actions array HERE // this will be executed after add_edit_address_subscription_action
   function header(‘Location: index.php’); exit; }
 *  Plugin Author [themastercut](https://wordpress.org/support/users/themastercut/)
 * (@themastercut)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/redirection-url-customization/#post-11625642)
 *     ```
       function redirectUrlAfterRevisionManagerCreatesDraft( $url, $newPostId ){
   
           return admin_url( '/my-awesome/admin/url/in/dashboard/area' );
   
       }
   
       add_filter( 'tmc/revisionmanager/revisions/createLinkedPost/redirectUrl', 'redirectUrlAfterRevisionManagerCreatesDraft', 10, 2 );
       ```
   
    -  This reply was modified 6 years, 11 months ago by [themastercut](https://wordpress.org/support/users/themastercut/).
 *  Thread Starter [rahulsatija](https://wordpress.org/support/users/rahulsatija/)
 * (@rahulsatija)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/redirection-url-customization/#post-11626122)
 * Thanks team,
 * That one is working.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Redirection url customization’ is closed to new replies.

 * ![](https://ps.w.org/revision-manager-tmc/assets/icon.svg?rev=1853970)
 * [Revision Manager TMC](https://wordpress.org/plugins/revision-manager-tmc/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/revision-manager-tmc/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/revision-manager-tmc/)
 * [Active Topics](https://wordpress.org/support/plugin/revision-manager-tmc/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/revision-manager-tmc/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/revision-manager-tmc/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [rahulsatija](https://wordpress.org/support/users/rahulsatija/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/redirection-url-customization/#post-11626122)
 * Status: resolved