Automattic\WooCommerce\Internal\Admin
Settings::get_features()
Removes non necesary feature properties for the client side.
Метод класса: Settings{}
Хуков нет.
Возвращает
Массив
.
Использование
$Settings = new Settings(); $Settings->get_features();
Код Settings::get_features() Settings::get features WC 9.3.1
public function get_features() { $features = FeaturesUtil::get_features( true, true ); $new_features = array(); foreach ( array_keys( $features ) as $feature_id ) { $new_features[ $feature_id ] = array( 'is_enabled' => $features[ $feature_id ]['is_enabled'], 'is_experimental' => $features[ $feature_id ]['is_experimental'] ?? false, ); } return $new_features; }