build(); global $wp_defender_central; $wp_defender_central = new \WP_Defender\Central(); do_action( 'wp_defender' ); // Initialize bootstrap. require_once WP_DEFENDER_DIR . 'src/bootstrap.php'; $bootstrap = new \WP_Defender\Bootstrap(); $bootstrap->check_if_table_exists(); if ( method_exists( $bootstrap, 'includes' ) ) { $bootstrap->includes(); } add_action( 'init', [ ( new \WP_Defender\Upgrader() ), 'run' ] ); add_action( 'admin_enqueue_scripts', [ $bootstrap, 'register_assets' ] ); add_filter( 'admin_body_class', [ $bootstrap, 'add_sui_to_body' ], 99 ); register_deactivation_hook( __FILE__, [ $bootstrap, 'deactivation_hook' ] ); register_activation_hook( __FILE__, [ $bootstrap, 'activation_hook' ] );