'RandomVideo', 'arve-pro' => 'Pro', 'arve-privacy' => 'Privacy', 'arve-sticky-videos' => 'StickyVideos', 'arve-amp' => 'AMP', ); // For error messages and stuff on the admin screens. const ALLOWED_HTML = array( 'h1' => 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 ), ); require_once __DIR__ . '/php/providers.php'; if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING ) { // @phpstan-ignore-line return; } if ( ! defined( 'ABSPATH' ) ) { return; // no exit for use in build script } $autoloader = __DIR__ . '/vendor/autoload_packages.php'; if ( file_exists( $autoloader ) ) { require_once $autoloader; } require_once __DIR__ . '/php/init.php'; if ( defined( 'WP_CLI' ) && WP_CLI ) { \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[^>]+>', '' )" ); } }