Wpd Ai Registered Integrations

Alpha Insights Documentation

Docs Navigation

Filter: wpd_ai_registered_integrations

Filter the list of registered integration instances (slug => WPDAI_Integration_Base) used by the Integrations Manager.

Description

The manager stores integration instances that extend WPDAI_Integration_Base. This filter runs when retrieving that list (e.g. for display or to resolve an integration by slug). You can add, remove, or replace instances. Built-in integrations are loaded from includes/integrations/register/ and register/pro/; custom integrations register via wpd_ai_register_integrations.

Location

File: includes/integrations/WPDAI_Integrations_Manager.php

Method: get_registered_integrations()

Parameters

Parameter Type Description
$integrations array Associative array of slug => WPDAI_Integration_Base instance

Return

Type: array

The (possibly modified) array of slug => integration instance.

Example Usage

Remove an integration from the list

add_filter( 'wpd_ai_registered_integrations', 'hide_webhooks_integration' );
function hide_webhooks_integration( $integrations ) {
    unset( $integrations['webhooks'] );
    return $integrations;
}

Related

Got A Question?

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Alpha Insights

Alpha Insights

The World's Most Advanced WooCommerce Profit Reporting Engine

5/5 – Trustpilot

Alpha Insights