Klaviyo
5 hooks fired by Klaviyo: 5 filters and 0 actions across 5 call sites.
5 hooks fired by Klaviyo: 5 filters and 0 actions across 5 call sites. 5 of the 5 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:342
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:85
xpac_klaviyo_default_phone_country
Filter · 2 arguments · 1 call site
Filters the calling code assumed for a phone number typed without one.
apply_filters( 'xpac_klaviyo_default_phone_country', $country, $field )$country(string) — Digits only, such as "44". Default "1" for a Phone field with the US format, the calling code an add-on phone format declares for a field in that format, else empty, which leaves such a number off the profile.$field(string) — Form field the number came from.
Fired from:
packages/Klaviyo/Addon.php:1225
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:73
xpac_klaviyo_typed_properties
Filter · 3 arguments · 1 call site
Filters whether a Klaviyo custom property keeps the answer's own type.
On, a numeric answer is sent as a number, "true"/"false" as a boolean and a multi-answer field as an array, so numeric segment conditions and boolean comparisons work. Off — the default — every value is sent as a string.
apply_filters( 'xpac_klaviyo_typed_properties', false, $name, $local )$typed(bool) — Whether to preserve the type. Default false.$name(string) — Property name, without the mapping row's prefix.$local(string) — Form field the value came from.
Fired from:
packages/Klaviyo/Addon.php:995