Skip to main content

Filter: gform_preview_styles

Filters Form Preview Styles.

This filter modifies the enqueued styles for the Form Preview. Any handles returned in the array will be loaded in the Preview header (if they've been registered with wp_register_style).

Parameters​

NameTypeDescription
$stylesarrayAn empty array representing the currently-active styles.
$formarrayAn array representing the current Form.

Since​

  • 2.4

Source​

Defined in preview.php at line 82

Returns​

An array of handles to enqueue in the header.