Automattic\WooCommerce\Internal\Admin\WCPayPromotion

Init::get_specs()public staticWC 1.0

Get specs or fetch remotely if they don't exist.

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

No Hooks.

Return

null. Nothing.

Usage

$result = Init::get_specs();

Code of Init::get_specs() WC 6.6.1

public static function get_specs() {
	if ( 'no' === get_option( 'woocommerce_show_marketplace_suggestions', 'yes' ) ) {
		return array();
	}
	return WCPayPromotionDataSourcePoller::get_instance()->get_specs_from_data_sources();
}