/home/techb158/public_html/wp-content/plugins/meta-box/inc
NameSizeModeActions
fields/-0755rm
helpers/-0755rm
interfaces/-0755rm
storages/-0755rm
walkers/-0755rm
autoloader.php15210666editdlrm
clone.php35920666editdlrm
core.php28890666editdlrm
field-registry.php16700666editdlrm
field.php186010666editdlrm
functions.php108770666editdlrm
loader.php45160666editdlrm
media-modal.php31600666editdlrm
meta-box-registry.php13050666editdlrm
meta-box.php126760666editdlrm
request.php24210666editdlrm
sanitizer.php85810666editdlrm
shortcode.php26000666editdlrm
storage-registry.php4180666editdlrm
validation.php26510666editdlrm
Edit: /home/techb158/public_html/wp-content/plugins/meta-box/inc/autoloader.php (1521B)
dirs[] = [ 'dir' => trailingslashit( $dir ), 'prefix' => $prefix, 'suffix' => $suffix, ]; } public function register() { spl_autoload_register( [ $this, 'autoload' ] ); } public function autoload( string $class_name ) { foreach ( $this->dirs as $dir ) { if ( ( $dir['prefix'] && ! str_starts_with( $class_name, $dir['prefix'] ) ) || ( $dir['suffix'] && ! str_ends_with( $class_name, $dir['suffix'] ) ) ) { continue; } $file = substr( $class_name, strlen( $dir['prefix'] ) ); if ( $dir['suffix'] && strlen( $file ) > strlen( $dir['suffix'] ) ) { $file = substr( $file, 0, - strlen( $dir['suffix'] ) ); } if ( function_exists( 'mb_strtolower' ) && function_exists( 'mb_detect_encoding' ) ) { $file = mb_strtolower( str_replace( '_', '-', $file ), mb_detect_encoding( $file ) ) . '.php'; } else { $file = strtolower( str_replace( '_', '-', $file ) ) . '.php'; } $file = $dir['dir'] . $file; $this->require( $file ); } } private function require( string $file ) { if ( file_exists( $file ) ) { require_once $file; } } }