Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 735 Bytes

remove-toolbar-frontend.md

File metadata and controls

28 lines (21 loc) · 735 Bytes

remove-toolbar-frontend

Description

Remove the WordPress admin toolbar on the front-end for specific user roles.

Usage

✓ Supports multiple instances.

intervention('remove-toolbar-frontend', $roles(string|array));

Defaults

$roles: all

Options

$roles: all, all-not-admin, admin, editor, author, contributor, subscriber

Examples

intervention('remove-toolbar-frontend');
// Removes front-end toolbar for all user roles.

intervention('remove-toolbar-frontend', 'contributor');
// Removes front-end toolbar for user role contributor.

intervention('remove-toolbar-frontend', ['contributor', 'subscriber']);
// Removes front-end toolbar for user roles contributor and subscriber.