Polkurier wymaga do działania PHP w wersji minimum 5.6

'; }); return; } if (isset($wp_version) && version_compare($wp_version, '4.7', '<')) { add_action('admin_notices', function () { echo '

Polkurier wymaga do działania Wordpress w wersji minimum 4.7

'; }); return; } // Autoload spl_autoload_register(static function ($className) { if (strpos($className, 'Polkurier\\') === 0) { $classesDir = realpath(plugin_dir_path(__FILE__)) . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR; $classFile = str_replace(['_', '\\'], DIRECTORY_SEPARATOR, $className) . '.php'; include_once $classesDir . $classFile; } }); /** * Currently plugin version. * Start at version 1.0.0 and use SemVer - https://semver.org * Rename this for your plugin and update it as you release new versions. */ define('POLKURIER_PLUGIN_VERSION', '1.24.1'); /** * The code that runs during plugin activation. * This action is documented in includes/class-polkurier-activator.php */ function activate_polkurier() { require_once plugin_dir_path(__FILE__) . 'includes/class-polkurier-activator.php'; Polkurier_Activator::activate(); } /** * The code that runs during plugin deactivation. * This action is documented in includes/class-polkurier-deactivator.php */ function deactivate_polkurier() { require_once plugin_dir_path(__FILE__) . 'includes/class-polkurier-deactivator.php'; Polkurier_Deactivator::deactivate(); } register_activation_hook(__FILE__, 'activate_polkurier'); register_deactivation_hook(__FILE__, 'deactivate_polkurier'); /** * The core plugin class that is used to define internationalization, * admin-specific hooks, and public-facing site hooks. */ require plugin_dir_path(__FILE__) . 'includes/class-polkurier.php'; /** * Begins execution of the plugin. * * Since everything within the plugin is registered via hooks, * then kicking off the plugin from this point in the file does * not affect the page life cycle. * * @since 1.0.0 */ function run_polkurier() { $plugin = Polkurier::instance(); $plugin->run(); } add_action('admin_notices', function () { if ((int)get_option('pk-update-notice-1.10.0') === 1) { if ($_GET['page'] === 'wc-settings' && $_GET['tab'] === 'shipping') { delete_option('pk-update-notice-1.10.0'); return; } echo '

Polkurier

Uwaga! od wersji 1.10.0 zmienił się sposób konfiguracji metod wysyłki.
Przejdź do zakładki "WooCommerce" → "Ustawienia" → "Wysyłka" i zweryfikuj czy ustawienia zostały zaimportowane poprawnie.

Więcej informacji znajdziesz w zakładce "Integracje" oraz bazie wiedzy na stronie Polkurier.pl

'; } }); run_polkurier();