includes/class-dlogr-settings.php. * * WordPress loads every active plugin on every front-end request, where this * plugin has nothing to do — routing happens in boot.php, before WordPress. */ spl_autoload_register( function ( $class_name ) { if ( 0 !== strpos( $class_name, 'DLOGR_' ) ) { return; } $file = DLOGR_PLUGIN_DIR . 'includes/class-' . strtolower( str_replace( '_', '-', $class_name ) ) . '.php'; if ( is_readable( $file ) ) { require_once $file; } } ); register_activation_hook( __FILE__, array( 'DLOGR_Lifecycle', 'activate' ) ); register_deactivation_hook( __FILE__, array( 'DLOGR_Lifecycle', 'deactivate' ) ); DLOGR_Plugin::init();