array( 'class' => true ), 'h2' => array( 'class' => true ), 'h3' => array( 'class' => true ), 'h4' => array( 'class' => true ), 'h5' => array( 'class' => true ), 'h6' => array( 'class' => true ), 'a' => array( 'href' => true, 'target' => true, 'title' => true, ), 'abbr' => array( 'title' => true ), 'small' => array(), 'p' => array( 'class' => true ), 'br' => array(), 'em' => array(), 'strong' => array(), 'code' => array( 'class' => true ), 'ol' => array( 'class' => true ), 'ul' => array( 'class' => true ), 'li' => array( 'class' => true ), 'pre' => array( 'class' => true ), 'div' => array( 'class' => true ), ); if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) { // @phpstan-ignore-line return; } if ( ! defined( 'ABSPATH' ) ) { return; // no exit for use in build script } require_once __DIR__ . '/vendor/autoload_packages.php'; require_once __DIR__ . '/php/init.php'; if ( defined( 'WP_CLI' ) && WP_CLI ) { // @phpstan-ignore-line \WP_CLI::add_command( 'arve', 'Nextgenthemes\ARVE\CLI' ); } register_uninstall_hook( PLUGIN_FILE, __NAMESPACE__ . '\uninstall' ); function uninstall(): void { global $wpdb; if ( version_compare( $wpdb->db_version(), '8.0', '>=' ) ) { $wpdb->query( "UPDATE {$wpdb->postmeta} SET meta_value = REGEXP_REPLACE( meta_value, ']+arve_cachetime[^>]+>', '' )" ); } }