gfpdf_gf_noconflict_styles
Jump To Section
Description
When Gravity Forms is in No-Conflict mode, along with enqueuing CSS using wp_enqueue_style()
you also need to specifically register styles so they are loaded on Gravity Forms pages.
We've ensured any enqueued styles with a handle beginning with gfpdf_css
are automatically registered, but you may need to register other WordPress styles. This filter allows you to easily register a WordPress CSS handler so it's included on No Conflict Gravity Form pages.
Parameters
$items | array
: The list of CSS handler currently being registered with Gravity Form's No-Conflict mode.
: By default any CSS handler beginning with gfpdf_css
, and already enqueued, are registered on Gravity Forms pages. The following WordPress styles are also registered on Gravity PDF pages:
Usage
This example will register a core WordPress CSS file with Gravity Forms No-Conflict mode.
Source Code
This filter is located in the Router::auto_noconflict_styles()
method of /src/bootstrap.php
.