WordPress Change Preview Post Link Button URL Via preview_post_link Filter
The preview_post_link filter in WordPress can be used to change the URL of the Preview Post button on the post editor screen. You can use the following code to change the URL of the Preview Post button: function custom_preview_post_link( $preview_link, $post ) { $preview_link = home_url( ‘/my-custom-preview-url/?p=’ . $post->ID ); return $preview_link; } add_filter( … Read more