Filter: gk/gravityview/custom-code/placeholders
Filters the placeholders available for custom CSS and JavaScript code.
Customer-registered placeholders go through the same word-boundary regex as the built-ins, so a placeholder named (for example) SITE_NAME only fires when it appears as a standalone token — never inside an identifier like mySITE_NAMEfont.
Parameters
| Name | Type | Description |
|---|---|---|
| $placeholders | array | Associative array of placeholder => replacement value pairs. |
| $view | \GV\View | The View object. |
| $content | string | The original content before replacement. |
Since
- 2.50.0
Source
Defined in src/Frontend/Frontend.php at line 2553