List All Active Plugins

If you want to list all active plugins, you can use the snippet below:

function wpkb_list_active_site_plugins() {
    $plugins = get_option( 'active_plugins' );
    foreach ( $plugins as $key => $value ) {
        $string = explode( '/', $value ); 
        echo $string[0] . "n";
    }
}

wpkb_list_active_site_plugins();