woocommerce_agentic_commerce_providers filter-hookWC 10.4.0

Filter to register additional AI agent providers.

Allows extensions to add their own AI agent provider settings. Each provider should return an array with id, name, description, and fields.

Usage

add_filter( 'woocommerce_agentic_commerce_providers', 'wp_kama_woocommerce_agentic_commerce_providers_filter', 10, 2 );

/**
 * Function for `woocommerce_agentic_commerce_providers` filter-hook.
 * 
 * @param array $providers Array of provider configurations.
 * @param array $registry  Current registry data.
 *
 * @return array
 */
function wp_kama_woocommerce_agentic_commerce_providers_filter( $providers, $registry ){

	// filter...
	return $providers;
}
$providers(array)
Array of provider configurations.
$registry(array)
Current registry data.

Changelog

Since 10.4.0 Introduced.

Where the hook is called

AgenticSettingsPage::get_providers()
woocommerce_agentic_commerce_providers
woocommerce/src/Internal/Admin/Agentic/AgenticSettingsPage.php 78
$providers = apply_filters( 'woocommerce_agentic_commerce_providers', $providers, $registry );

Where the hook is used in WooCommerce

Usage not found.