Automattic\WooCommerce\Internal\Admin

Marketing::component_settings()publicWC 1.0

Add settings for marketing feature.

{} It's a method of the class: Marketing{}

No Hooks.

Return

Array.

Usage

$Marketing = new Marketing();
$Marketing->component_settings( $settings );
$settings(array) (required)
Component settings.

Code of Marketing::component_settings() WC 7.1.0

public function component_settings( $settings ) {
	// Bail early if not on a wc-admin powered page.
	if ( ! PageController::is_admin_page() ) {
		return $settings;
	}

	$settings['marketing']['installedExtensions'] = InstalledExtensions::get_data();

	return $settings;
}