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 used
  • adminbar: (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']	= '';
	return $url;
add_filter( 'gppro_preview_url', 'my_preview_url' );