Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 691 Bytes

remove-update-notices.md

File metadata and controls

28 lines (21 loc) · 691 Bytes

remove-update-notices

Description

Remove the WordPress update notices for specific user roles.

Usage

✓ Supports multiple instances.

intervention('remove-update-notices', $roles(string|array));

Defaults

$roles: all-not-admin

Options

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

Examples

intervention('remove-update-notices');
// Removes update notices for user roles all-not-admin.

intervention('remove-update-notices', 'editor');
// Removes update notices for user role editor.

intervention('remove-update-notices', ['editor', 'author']);
// Removes update notices for user roles editor and author.