| Server IP : 65.108.144.40 / Your IP : 216.73.217.165 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 User : dev ( 1000) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/successkpi/wp-content/plugins/wpe-site-migration/class/ |
Upload File : |
<?php
defined( 'ABSPATH' ) || exit;
use DeliciousBrains\WPMDB\SetupProviders;
$providers = new SetupProviders();
$is_pro = defined( "WPMDB_PRO" ) && WPMDB_PRO;
$providers->setup();
$classes = [];
if ( $providers !== null ) {
foreach ( $providers->classes as $key => $class ) {
if ( $class === null ) {
continue;
}
// Access by classname ex. Properties::class
$classes[ get_class( $class ) ] = function () use ( $class ) {
return $class;
};
// Access by 'shorthand' ex. 'properties'
$classes[ $key ] = function () use ( $class ) {
return $class;
};
}
}
if ( $is_pro ) {
DeliciousBrains\WPMDB\Pro\Compatibility\Layers\Addons\Addons::substitute_classes( $classes );
}
if ( ! empty( $classes ) ) {
return $classes;
}
throw new Exception( __( "Classmap could not be generated.", 'wp-migrate-db' ) );