API Reference

WordPress / API Reference

wp_whitelabel_restrict_admin_access

WordPress tool. Restrict what non-admin roles can see and do in the WordPress admin

This is a read-only tool: it returns whitelabel restrict admin access for your WordPress account. It changes nothing.

Ask Claude

You do not call this tool yourself. Ask for the outcome and the client picks the tool:

Whitelabel restrict admin access in my WordPress account for [role].

It takes 1 required and 5 optional parameters.

Parameters

ParameterTypeRequiredDescription
rolestringYesRole
allowed_pagesarrayNoAllowed Pages
blocked_pagesarrayNoBlocked Pages
hide_admin_barbooleanNoHide Admin Bar
redirect_on_loginstringNoRedirect On Login
disable_file_editorbooleanNoDisable File Editor

Related WordPress tools

Start free — 30 tool calls a month

No card required. Connect Google Ads, Meta Ads, GA4 or Search Console and ask Claude for the outcome — it picks the tool.