Opened 3 years ago

Last modified 3 years ago

#14479 new enhancement

Add filter hook to 'is_super_admin()' function

Reported by: benward Owned by: benward
Priority: normal Milestone: Future Release
Component: Role/Capability Version: 3.0
Severity: normal Keywords: has-patch
Cc:

Description

This patch adds a new filter, named 'is_super_admin' to the end of the capabilities.php:is_super_admin() function, allowing plugins to override the result of this capabilities check.

Use cases:

  • Applying/restricting Super Admin privilege based on an external user authentication/permissions system.
  • Restricting Super Admin privilege based on a user's network location.

Attachments (1)

capabilities-super_user_filter.diff (901 bytes) - added by benward 3 years ago.
Adds 'is_super_user' filter to 'is_super_user()' function.

Download all attachments as: .zip

Change History (3)

benward3 years ago

Adds 'is_super_user' filter to 'is_super_user()' function.

  • Keywords has-patch added; capabilities is_super_admin fiters removed
  • Milestone changed from Awaiting Review to Future Release
Note: See TracTickets for help on using tickets.