ng' ), sprintf( // Translators: open and close strong tag. __( '%1$sExample 1:%2$s If the cost of the shipping method you are currently configuring should be $12, enter %3$sCost is:%4$s 12.', 'flexible-shipping' ), '', '', '', '' ), ], 'buttons' => [ [ 'label' => __( 'Previous step', 'flexible-shipping' ), 'popup' => 'step_2', 'classes' => 'btn-link', ], [ 'label' => __( 'Next step', 'flexible-shipping' ), 'popup' => 'step_4', 'classes' => 'btn-success', ], ], ]; } /** * @return array */ private function get_popup_data_step_4(): array { return [ 'id' => 'step_4', 'logo' => false, 'title' => null, 'step' => 4, 'show' => false, 'image' => 'steps/' . $this->get_locale() . '/step-4.gif', 'heading' => __( 'Add more and combine the rules!', 'flexible-shipping' ), 'text' => [ sprintf( // Translators: open and close strong tag. __( 'Configure even the most advanced shipping scenarios by adding and combining the shipping cost calculation rules. Precisely define how the shipping cost should be calculated or import and adapt one of our %1$sready-to-use scenarios%2$s to your needs. Read the %3$sFlexible Shipping plugin documentation%4$s and discover its endless possibilities!', 'flexible-shipping' ), sprintf( '', // Translators: open and close strong tag. esc_url( __( 'https://octol.io/onboarding-sc', 'flexible-shipping' ) ) ), '', sprintf( '', // Translators: open and close strong tag. esc_url( __( 'https://octol.io/onboarding-docs', 'flexible-shipping' ) ) ), '' ), ], 'buttons' => [ [ 'label' => __( 'Previous step', 'flexible-shipping' ), 'popup' => 'step_3', 'classes' => 'btn-link', ], [ 'label' => __( 'Proceed to adding the rules', 'flexible-shipping' ), 'action' => 'finish', 'classes' => 'btn-success', ], ], ]; } /** * @return string */ private function get_locale(): string { $locale = get_user_locale(); if ( 'pl_PL' === $locale ) { return $locale; } return 'en_US'; } }
Fatal error: Uncaught Error: Class "WPDesk\FS\Onboarding\TableRate\PopupData" not found in /htdocs/wp-content/plugins/flexible-shipping/classes/class-flexible-shipping-plugin.php:279 Stack trace: #0 /htdocs/wp-content/plugins/flexible-shipping/classes/class-flexible-shipping-plugin.php(417): Flexible_Shipping_Plugin->load_dependencies() #1 /htdocs/wp-content/plugins/flexible-shipping/vendor_prefixed/wpdesk/wp-plugin-flow-common/src/Initialization/BuilderTrait.php(66): Flexible_Shipping_Plugin->init() #2 /htdocs/wp-content/plugins/flexible-shipping/vendor_prefixed/wpdesk/wp-plugin-flow-common/src/Initialization/Simple/SimpleFreeStrategy.php(51): FSVendor\WPDesk\Plugin\Flow\Initialization\Simple\SimpleFreeStrategy->init_plugin(Object(Flexible_Shipping_Plugin)) #3 /htdocs/wp-content/plugins/flexible-shipping/vendor_prefixed/wpdesk/wp-plugin-flow-common/src/PluginBootstrap.php(83): FSVendor\WPDesk\Plugin\Flow\Initialization\Simple\SimpleFreeStrategy->run_init(Object(FSVendor\WPDesk_Plugin_Info)) #4 /htdocs/wp-includes/class-wp-hook.php(324): FSVendor\WPDesk\Plugin\Flow\PluginBootstrap::FSVendor\WPDesk\Plugin\Flow\{closure}('') #5 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #6 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /htdocs/wp-settings.php(559): do_action('plugins_loaded') #8 /htdocs/wp-config.php(86): require_once('/htdocs/wp-sett...') #9 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #10 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #11 /htdocs/index.php(17): require('/htdocs/wp-blog...') #12 {main} thrown in /htdocs/wp-content/plugins/flexible-shipping/classes/class-flexible-shipping-plugin.php on line 279