Automattic\WooCommerce\Internal\Features

FeaturesController::init_compatibility_info_by_feature()privateWC 1.0

Initialize the compatibility_info_by_feature property after all the features have been added.

Метод класса: FeaturesController{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// private - только в коде основоного (родительского) класса
$result = $this->init_compatibility_info_by_feature();

Код FeaturesController::init_compatibility_info_by_feature() WC 9.8.1

private function init_compatibility_info_by_feature() {
	foreach ( array_keys( $this->features ) as $feature_id ) {
		if ( ! isset( $this->compatibility_info_by_feature[ $feature_id ] ) ) {
			$this->compatibility_info_by_feature[ $feature_id ] = array(
				'compatible'   => array(),
				'incompatible' => array(),
			);
		}
	}
}