getName(); $js_var = 'frontend' === $name ? 'ceFrontendConfig' : 'elementor' . call_user_func('ucfirst', $name) . 'Config'; $config = $this->getSettings() + $this->getComponentsConfig(); wp_localize_script('elementor-' . $name, $js_var, $config); } /** * Get components config. * * Retrieves the app components settings. * * @since 2.3.0 * @access private * * @return array */ private function getComponentsConfig() { $settings = []; foreach ($this->getComponents() as $id => $instance) { $settings[$id] = $instance->getSettings(); } return $settings; } }