Automattic\WooCommerce\Internal\Features
FeaturesController::init_compatibility_info_by_feature()
Initialize the compatibility_info_by_feature property after all the features have been added.
Method of the class: FeaturesController{}
No Hooks.
Return
null
. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->init_compatibility_info_by_feature();
FeaturesController::init_compatibility_info_by_feature() FeaturesController::init compatibility info by feature code 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(), ); } } }