pbs_iframe_header

Used within the iframe used by PBS to render its responsive view during editing. This is called right before the <head> tag closes and can be used to add scripts and styles.

Parameters

None.

Example

add_action( 'pbs_iframe_header', 'change_bg_color' );

function change_bg_color() {
	?>
	<style>
	body {
		background-color: hotpink;
	}
	</style>
	<?php
}

Still need help? Contact Us Contact Us