Skip to content

WordPress mu-plugin that sanitizes admin bar from junk and provides enhancements.

License

Notifications You must be signed in to change notification settings

Kntnt/kntnt-adminbar-sanitizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Kntnt Adminbar Sanitizer

WordPress mu-plugin that sanitizes admin bar from junk and provides enhancements.

Description

You can use this plugin to add or reomve items to the admin bar.

Out of the box, this plugns adds a toggle button, so you can switch between frontend and admin, and removes following buttons

  • WordPress (menu with About, WordPress.org, Documentation, Support and Feedback)
  • Site menu (menu with Visit site alternative Panel, Theme, Widgets and Menus)

You can add and delete items from the list of items to be removed by implementing the kntnt_admin_bar_sanitizer_remove_list-filter:

add_filter('kntnt_admin_bar_sanitizer_remove_list', function($remove_list) {
    $remove_list[] = 'customize';
    $remove_list[] = 'my-account';
    return $remove_list;
});

You can add and delete items from the list of items to be added on the frontend by implementing the kntnt_admin_bar_sanitizer_add_front_list-filter:

add_filter('kntnt_admin_bar_sanitizer_add_front_list', function($add_list) {
    $add_list['kntnt'] = [
        'title' => 'Kntnt',
        'link' => 'https://www.kntnt.com/',
        'icon' => '\f102',       // OPTIONAL
        'icon_top_margin' => 0,  // OPTIONAL
     ],
    return $add_list;
});

You can add and delete items from the list of items to be added on the backend by implementing the kntnt_admin_bar_sanitizer_add_admin_list-filter:

add_filter('kntnt_admin_bar_sanitizer_add_admin_list', function($add_list) {
    $add_list['kntnt'] = [
        'title' => 'Kntnt',
        'link' => 'https://www.kntnt.com/',
        'icon' => '\f102',       // OPTIONAL
        'icon_top_margin' => 0,  // OPTIONAL
    ],
  return $add_list;
});

About

WordPress mu-plugin that sanitizes admin bar from junk and provides enhancements.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages