pbs_iframe_header

pbs_iframe_header

Se utiliza dentro del iframe que usa PBS para renderizar su vista adaptativa durante la edición. Se llama justo antes de que se cierre la etiqueta <head> y se puede usar para añadir scripts y estilos.

Parámetros

Ninguno.

Ejemplo

add_action( 'pbs_iframe_header', 'change_bg_color' );

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