JS_Config::get_data()
Summary
No summary available.Source
File: src/BigCommerce/Assets/Theme/JS_Config.php
public function get_data() { if ( ! isset( $this->data ) ) { $this->data = [ 'store_domain' => get_option( \BigCommerce\Import\Processors\Store_Settings::DOMAIN ), 'images_url' => $this->directory . 'img/admin/', 'product' => [ 'messages' => [ 'not_available' => __( 'The selected product combination is currently unavailable.', 'bigcommerce' ), ], ], 'channel' => $this->get_current_channel_data(), 'currency_code' => get_option( Currency::CURRENCY_CODE, 'USD' ), 'logout_url' => esc_url( wp_logout_url( '/' ) ), ]; /** * Filters Theme Js config. * * @param array $data Theme Js config. */ $this->data = apply_filters( 'bigcommerce/js_config', $this->data ); } return $this->data; }