mirror of
https://hk.gh-proxy.com/https://github.com/pronamic/woocommerce-eu-vat-number.git
synced 2026-02-28 13:27:18 +08:00
19 lines
489 B
PHP
19 lines
489 B
PHP
<?php
|
|
/**
|
|
* Backwards compatibility for old main file.
|
|
*
|
|
* @package woocommerce-eu-vat-number
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
$active_plugins = get_option( 'active_plugins', array() );
|
|
|
|
foreach ( $active_plugins as $key => $active_plugin ) {
|
|
if ( strstr( $active_plugin, '/eu-vat-number.php' ) ) {
|
|
$active_plugins[ $key ] = str_replace( '/eu-vat-number.php', '/woocommerce-eu-vat-number.php', $active_plugin );
|
|
}
|
|
}
|
|
update_option( 'active_plugins', $active_plugins );
|