includes/Admin/Settings.php */ spl_autoload_register( function ( $class_name ) { $prefix = 'AI1WP\\'; if ( 0 !== strpos( $class_name, $prefix ) ) { return; } $file = AI1WP_PATH . '/includes/' . str_replace( '\\', '/', substr( $class_name, strlen( $prefix ) ) ) . '.php'; if ( is_readable( $file ) ) { require $file; } } ); // Run pending updates on activation too. register_activation_hook( __FILE__, array( 'AI1WP\Update\Update', 'maybe_update' ) ); // Boot Plugin. AI1WP\Plugin::instance();