gppro_preview_url
Set the URL viewed inside the live preview. The URL still needs to be part of the actual site. This will override any URL placed in the settings section. The filter has two parts:
base:
(string) the actual URL being usedadminbar:
(string) set to 'on' or 'off' to show or hide the admin bar.
Change the URL inside the live preview.
function my_preview_url( $url ) { $url['base'] = 'http://awesome.com/my-single-post/'; return $url; } add_filter( 'gppro_preview_url', 'my_preview_url' );