芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/public_html/wp-content/plugins/elementor-pro/core/app/modules/onboarding/module.php
common; $app = Plugin::elementor()->app; $onboarding_settings = $app->get_settings( 'onboarding' ); // If the installed Elementor Core version does not include the Onboarding module, exit here. if ( ! $onboarding_settings ) { return; } /** @var Activate $activate */ $activate = $common->get_component( 'connect' )->get_app( 'activate' ); $onboarding_settings['urls']['connect'] = $activate->get_admin_url( 'authorize', [ 'utm_source' => 'editor-app', 'utm_campaign' => 'connect-account', 'utm_medium' => 'wp-dash', 'utm_term' => Core_Onboarding_Module::VERSION, 'source' => 'generic', ] ); $onboarding_settings['urls']['signUp'] = $activate->get_admin_url( 'authorize', [ 'utm_source' => 'editor-app', 'utm_campaign' => 'connect-account', 'utm_medium' => 'wp-dash', 'utm_term' => Core_Onboarding_Module::VERSION, 'source' => 'generic', 'screen_hint' => 'signup', ] ); $app->set_settings( 'onboarding', $onboarding_settings ); } public function __construct() { add_action( 'elementor/init', function () { $this->set_onboarding_settings(); }, 13 /** after elementor core */ ); } }