src/PluginLoader.php
public function load(): void
    {
        // Load WordPress's action and filter helper functions.
        require_once ABSPATH.'wp-includes/plugin.php';

        add_filter('pre_option_active_plugins', [$this, 'preOptionActivePlugins']);
        add_filter('show_advanced_plugins', [$this, 'showAdvancedPlugins'], 0, 2);
        add_filter('option_active_plugins', [$this, 'optionActivePlugins'], PHP_INT_MAX);
        add_filter('pre_update_option_active_plugins', [$this, 'preUpdateOptionActivePlugins']);
    }
public function load(): void
    {
        // Load WordPress's action and filter helper functions.
        require_once ABSPATH.'wp-includes/plugin.php';

        add_filter('pre_option_active_plugins', [$this, 'preOptionActivePlugins']);
        add_filter('show_advanced_plugins', [$this, 'showAdvancedPlugins'], 0, 2);
        add_filter('option_active_plugins', [$this, 'optionActivePlugins'], PHP_INT_MAX);
        add_filter('pre_update_option_active_plugins', [$this, 'preUpdateOptionActivePlugins']);
    }
public function load ( ) : void { // Load WordPress's action and filter helper functions. require_once ABSPATH . 'wp-includes/plugin.php' ; add_filter ( 'pre_option_active_plugins' , [ $ this , 'preOptionActivePlugins' ] ) ; add_filter ( 'show_advanced_plugins' , [ $ this , 'showAdvancedPlugins' ] , 0 , 2 ) ; add_filter ( 'option_active_plugins' , [ $ this , 'optionActivePlugins' ] , PHP_INT_MAX ) ; add_filter ( 'pre_update_option_active_plugins' , [ $ this , 'preUpdateOptionActivePlugins' ] ) ; }
Run the plugin loader.

@return void
Run the plugin loader .