Choose which cookies we can use. You can change this at any time from “Cookie settings” in the footer. See our cookie policy for details.

Essential

Needed for the site to work, such as remembering your cookie choices. These can’t be switched off.

Always on
Skip to content
Developer reference

Hide Admin Bar hooks

1 filters and actions, read from the plugin source. Add these in a theme’s functions.php or a Code Snippet.

  • filter

    wpextended/hide-admin-bar/user_roles

    Filters the user roles offered in this module’s settings.

    $options
    (array) user role key => label

    Returns: array

    add_filter( 'wpextended/hide-admin-bar/user_roles', function ( $options ) {
        return $options;
    } );