'how-it-works'); if (isset($_GET['wpacu_for'])) { $data['for'] = sanitize_text_field($_GET['wpacu_for']); } Main::instance()->parseTemplate('admin-page-getting-started', $data, true); } /** * */ public function help() { Main::instance()->parseTemplate('admin-page-get-help', array(), true); } /** * */ public function pagesInfo() { Main::instance()->parseTemplate('admin-page-pages-info', array(), true); } /** * */ public function license() { Main::instance()->parseTemplate('admin-page-license', array(), true); } /** * @param $locationChild * @param $allPlugins * @param $allActivePluginsIcons * * @return string */ public static function getPluginInfo($locationChild, $allPlugins, $allActivePluginsIcons) { foreach (array_keys($allPlugins) as $pluginFile) { if (strpos($pluginFile, $locationChild.'/') === 0) { $imageIconStyle = $classIconStyle = ''; if (isset($allActivePluginsIcons[$locationChild]) && $allActivePluginsIcons[$locationChild]) { $classIconStyle = 'has-icon'; $imageIconStyle = 'style="background: transparent url(\''.$allActivePluginsIcons[$locationChild].'\') no-repeat 0 0; background-size: cover;"'; } return '
  '.$allPlugins[$pluginFile]['Name'].'' . ' v'.$allPlugins[$pluginFile]['Version'].''; } } return $locationChild; } /** * @param $locationChild * @param $allThemes * * @return array */ public static function getThemeInfo($locationChild, $allThemes) { foreach (array_keys($allThemes) as $themeDir) { if ($locationChild === $themeDir) { $themeInfo = wp_get_theme($themeDir); $themeIconUrl = Misc::getThemeIcon($themeInfo->get('Name')); $themeIconHtml = ''; $hasIcon = false; if ($themeIconUrl) { $hasIcon = true; $imageIconStyle = 'style="background: transparent url(\''.$themeIconUrl.'\') no-repeat 0 0; background-size: cover;"'; $themeIconHtml = '
'; } $output = $themeIconHtml . $themeInfo->get('Name') . ' v'.$themeInfo->get('Version').''; return array('has_icon' => $hasIcon, 'output' => $output); } } return array('has_icon' => false, 'output' => $locationChild); } /** * Notices about consequences in unloading assets from specific plugins * * @param $plugin */ public function pluginNotice($plugin) { // Elementor, Elementor Pro if (in_array($plugin, array('elementor', 'elementor-pro'))) { $wpacuPluginTitle = WPACU_PLUGIN_TITLE; ?>

Most (if not all) of this plugin's files are linked (child & parent) for maximum compatibility. Unloading one Elementor CSS/JS will likely trigger the unloading of other "children" associated with it. To avoid breaking the Elementor editor, is deactivated in the page builder's edit & preview mode. If this page is not edited via Elementor and you don't need any of the plugin's functionality (widgets, templates etc.) here, you can unload the files below making sure to test the page after you updated it.