Enter your keyword

Blog

How to Change Preview Page link in Wordpress

function dswebsolutions_preview_link() {
    $site_url = site_url();
    $mydir = $site_url.'/preview-page/'.get_the_ID(); 
    return "$mydir";
}
add_filter( 'preview_post_link', 'dswebsolutions_preview_link' ); 

No Comments

Add your review

Your email address will not be published.

* Feilds are Required.