Hooks

Klaviyo

3 hooks fired by Klaviyo: 3 filters and 0 actions across 3 call sites.

3 hooks fired by Klaviyo: 3 filters and 0 actions across 3 call sites. 3 of the 3 call sites are described by a docblock, at the call or on the constant that names the hook; the rest are listed with their signature and call sites only. Paths are relative to the plugin directory.

xpac-forms-after-settings-modal-content

Filter · 3 arguments · 1 call site

Content appended inside a settings panel's item modal.

applyFilters( 'xpac-forms-after-settings-modal-content', [], { value: options, onChange: onUpdate, }, `xpac-${ID}` )

Fired from:

  • assets/packages/klaviyo/Components/Modal.js:282

xpac_klaviyo_api_revision

Filter · 1 argument · 1 call site

Filters the Klaviyo API revision this site declares.

Klaviyo keeps a revision serving its own shapes for two years and then routes it to the oldest live one, which changes request and response bodies without changing any status code. This filter is what moves a site onto a newer one before that happens, without a plugin release.

apply_filters( 'xpac_klaviyo_api_revision', self::REVISION )
  • $revision (string) — Revision date, as YYYY-MM-DD.

Fired from:

  • packages/Klaviyo/Client.php:78

xpac_klaviyo_request_timeout

Filter · 1 argument · 1 call site

Filters how long, in seconds, to wait for Klaviyo to reply.

The request no longer runs inside the visitor's submission, so this is a tolerance for a slow account rather than a latency budget: nothing is waiting on it, and a timeout shorter than Klaviyo's own response time turns a subscribe that worked into a needless retry.

apply_filters( 'xpac_klaviyo_request_timeout', 10 )
  • $timeout (int) — Seconds to wait. Default 10.

Fired from:

  • packages/Klaviyo/Client.php:66

On this page