Filter: gk/gravityview/theme/force-active
Force the theme stack onto a View regardless of its saved theme setting.
Returning true stamps .gv-themed on the View container AND enqueues the theme stylesheet (the Frontend.php enqueue gate reads the same filter). Returning false defers to the saved setting (the default).
Parameters
| Name | Type | Description |
|---|---|---|
| $force_active | bool | Default false. |
| $context | \GV\Template_Context|null | Render context, or null. |
Since
- 3.0.0
Source
- Defined in
src/API/class-api.phpat line 188 - Defined in
src/Frontend/Frontend.phpat line 1979