Code Cleanups
This commit is contained in:
		@@ -26,17 +26,6 @@ function add_custom_admin_bar_item() {
 | 
			
		||||
	// Überprüfen, ob der Benutzer die erforderliche Berechtigung hat
 | 
			
		||||
	if ( current_user_can( 'show_groups' ) ) {
 | 
			
		||||
		// Das Array mit den Eigenschaften des benutzerdefinierten Elements
 | 
			
		||||
		$args = [
 | 
			
		||||
			'id'    => 'kompass_gruppen',
 | 
			
		||||
			'title' => '<span class="ab-icon dashicons-groups"></span>' .
 | 
			
		||||
		        '<span class="ab-label">' .__('Groups', BDP_LV_PLUGIN_SLUG) . '</span>',
 | 
			
		||||
			'href'  => get_admin_url() . 'admin.php?page=kompass-groups',
 | 
			
		||||
 | 
			
		||||
		];
 | 
			
		||||
 | 
			
		||||
		// Das benutzerdefinierte Element zur Admin-Leiste hinzufügen
 | 
			
		||||
		$wp_admin_bar->add_node( $args );
 | 
			
		||||
 | 
			
		||||
		$args = [
 | 
			
		||||
			'id'    => 'kompass_events',
 | 
			
		||||
			'title' => '<span class="ab-icon dashicons-tickets-alt"></span>' .
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user