Automattic\WooCommerce\Internal\Admin\Agentic

AgenticSettingsPage::get_openai_fieldsprivateWC 1.0

Get OpenAI provider fields.

Method of the class: AgenticSettingsPage{}

No Hooks.

Returns

Array. Fields configuration.

Usage

// private - for code of main (parent) class only
$result = $this->get_openai_fields();

AgenticSettingsPage::get_openai_fields() code WC 10.5.0

private function get_openai_fields() {
	return array(
		array(
			'title'   => __( 'Authorization Token', 'woocommerce' ),
			'desc'    => __( 'The bearer token that ChatGPT uses to authenticate checkout requests.', 'woocommerce' ),
			'id'      => 'woocommerce_agentic_openai_bearer_token',
			'type'    => 'password',
			'default' => '',
		),
	);
}