Automattic\WooCommerce\Internal\Admin\WCPayPromotion

Init::get_specs()public staticWC 1.0

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

Method of the class: Init{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = Init::get_specs();

Init::get_specs() code WC 8.9.0

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