Hooks

AnalyticsMeta

6 hooks fired by AnalyticsMeta: 5 filters and 1 actions across 6 call sites.

6 hooks fired by AnalyticsMeta: 5 filters and 1 actions across 6 call sites. 3 of the 6 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_analytics_client_ip

Filter · 2 arguments · 1 call site

Filters the visitor IP after trusted-proxy resolution by the site.

Raw forwarded headers are intentionally not trusted here.

apply_filters( 'xpac_analytics_client_ip', $clientIp, Addon::ID )
  • $clientIp (string) — Request remote address.
  • $provider (string) — Provider add-on ID.

Fired from:

  • packages/AnalyticsMeta/EventProcessor.php:178

xpac_analytics_delivery_blocking

Filter · 2 arguments · 1 call site

Filters whether provider delivery waits for the provider's reply.

Delivery runs on shutdown. Where the client can be released first — PHP-FPM and LiteSpeed — waiting costs the visitor nothing and is what makes an expired credential or a retired API version visible at all. Where it cannot, shutdown still runs before the response is finished, so waiting would add the delivery timeout to the page load. Force it on only if you know the request is already detached from the visitor, such as a cron or WP-CLI run.

apply_filters( 'xpac_analytics_delivery_blocking', Dispatcher::canReleaseClient(), Addon::ID )
  • $blocking (bool) — Whether to wait for the reply.
  • $provider (string) — Provider add-on id.

Fired from:

  • packages/AnalyticsMeta/EventProcessor.php:282

xpac_analytics_meta_api_version

Filter · 1 argument · 1 call site

apply_filters( 'xpac_analytics_meta_api_version', self::API_VERSION )

Fired from:

  • packages/AnalyticsMeta/EventProcessor.php:383

xpac_analytics_meta_request_args

Filter · 2 arguments · 1 call site

Filters the outbound Meta Conversions API request.

apply_filters( 'xpac_analytics_meta_request_args', $args, $event )
  • $args (array<string,mixed>) — WordPress HTTP arguments.
  • $event (array<string,mixed>) — Validated event.

Fired from:

  • packages/AnalyticsMeta/EventProcessor.php:303

xpac_analytics_provider_dispatched

Action · 3 arguments · 1 call site

do_action( 'xpac_analytics_provider_dispatched', sanitize_key(Addon::ID), $event, $result )

Fired from:

  • packages/AnalyticsMeta/EventProcessor.php:507

xpac_analytics_remove_data_on_uninstall

Filter · 1 argument · 1 call site

apply_filters( 'xpac_analytics_remove_data_on_uninstall', true )

Fired from:

  • packages/AnalyticsMeta/Bootstrap.php:163

On this page