Automattic\WooCommerce\Internal\Admin\WCPayPromotion
Init::get_specs()
Get specs or fetch remotely if they don't exist.
Метод класса: Init{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$result = Init::get_specs();
Код Init::get_specs() Init::get specs WC 8.1.1
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(); }