wp_get_current_user
Retrieve the currently authenticated user's profile details including roles, capabilities, and account information to verify identity and permissions.
Instructions
Retrieves the currently authenticated user with comprehensive profile information including roles, capabilities, and account details.
Usage Examples:
• Get current user: wp_get_current_user
• Check permissions: Use this to verify your current user's capabilities and roles
• Account verification: Confirm you're authenticated with the correct account
• Profile details: View registration date, email, and user metadata
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | The ID of the WordPress site to target (from mcp-wordpress.config.json). Required if multiple sites are configured. |