Skip to main content

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

NameTypeDescription
$placeholdersarrayAssociative array of placeholder => replacement value pairs.
$view\GV\ViewThe View object.
$contentstringThe original content before replacement.

Since

  • 2.50.0

Source

Defined in src/Frontend/Frontend.php at line 2553