PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / trunk
Image Optimizer – Compress Images and Convert to WebP or AVIF vtrunk
1.7.7 1.7.6 1.7.5 1.7.4 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 All 33 releases
← All changes | vendor/elementor/wp-one-package/src/Admin/Components/Onboarding.php +13 -0 1.7.5 → trunk View file →
@@ -41,11 +41,24 @@
41 41 exit;
42 42 }
43 43
44 44 /**
45 + * On connect fail
46 + * @param Facade $facade
47 + * @return void
48 + */
49 + public function on_connect_fail( Facade $facade ): void {
50 + wp_safe_redirect(
51 + $facade->utils()->get_admin_url() . '#/home?connect-fail=1'
52 + );
53 + exit;
54 + }
55 +
56 + /**
45 57 * Onboarding constructor
46 58 * @return void
47 59 */
48 60 private function __construct() {
49 61 add_action( 'elementor_one/elementor_one_connected', [ $this, 'on_connect' ] );
62 + add_action( 'elementor_one/elementor_one_connect_fail', [ $this, 'on_connect_fail' ], 10, 1 );
50 63 }
51 64 }