Method | Description | |
---|---|---|
__construct ( ) | Preview constructor. | |
body_class ( array $classes = [] ) : array | Add custom class in element. | |
builder_wrapper ( string $content ) : string | Do not show the conent from the page. Just print empty start HTML. | |
enqueue_styles ( ) : void | Enqueue preview scripts and styles. | |
init ( ) : void | Initialize the preview mode. Fired by init action. | |
is_preview_mode ( ) : boolean | Method detect if we are in the preview mode (iFrame). | |
print_custom_css ( ) |
public body_class ( array $classes = [] ) : array | ||
$classes | array | |
return | array |
public builder_wrapper ( string $content ) : string | ||
$content | string | |
return | string |
public enqueue_styles ( ) : void | ||
return | void |
public is_preview_mode ( ) : boolean | ||
return | boolean |