Automattic\WooCommerce\Internal\Admin\Agentic

AgenticWebhookManager::register_webhook_topic_namespublicWC 1.0

Register webhook topic names for display in the UI.

Method of the class: AgenticWebhookManager{}

No Hooks.

Returns

Array. Modified topics.

Usage

$AgenticWebhookManager = new AgenticWebhookManager();
$AgenticWebhookManager->register_webhook_topic_names( $topics ): array;
$topics(array) (required)
Existing topics.

AgenticWebhookManager::register_webhook_topic_names() code WC 10.5.0

public function register_webhook_topic_names( $topics ): array {
	$topics[ self::WEBHOOK_TOPIC ] = __( 'Agentic Commerce Protocol: Order created or updated', 'woocommerce' );
	return $topics;
}