Automattic\WooCommerce\Blocks\Assets
AssetDataRegistry::get_products_settings
Get product related settings.
Note: For the time being we are exposing only the settings that are used by blocks.
Метод класса: AssetDataRegistry{}
Хуков нет.
Возвращает
Массив.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_products_settings();
Код AssetDataRegistry::get_products_settings() AssetDataRegistry::get products settings WC 10.9.4
protected function get_products_settings() {
return [
'cartRedirectAfterAdd' => get_option( 'woocommerce_cart_redirect_after_add' ) === 'yes',
];
}