Skip to content

Add user context personalization for AI Overview - #14

Merged
fumikito merged 4 commits into
masterfrom
feature/user-context-for-ai
Feb 2, 2026
Merged

Add user context personalization for AI Overview#14
fumikito merged 4 commits into
masterfrom
feature/user-context-for-ai

Conversation

@fumikito

@fumikito fumikito commented Feb 2, 2026

Copy link
Copy Markdown
Member

Summary

Closes #13

  • Add user context (display name, role, registration date) to AI system prompt for personalized responses
  • Add whitelist-based user role filtering to prevent exposing internal plugin roles (e.g., backup plugins)
  • Add development hooks support (dev/hooks.php) for local environment testing
  • Remove bundled translations in favor of GlotPress (WordPress.org)

New Filters

  • hamelp_user_context - Customize user context string sent to AI
  • hamelp_allowed_user_roles - Control which roles are shown to AI (whitelist)
  • hamelp_display_user_roles - Transform role names before display

Test plan

  • Verify AI responses include user context when logged in
  • Verify internal plugin roles (e.g., backwpup_admin) are not exposed
  • Verify dev/hooks.php only loads in local environment
  • Verify translations still work via GlotPress

🤖 Generated with Claude Code

@fumikito
fumikito merged commit 37b26ba into master Feb 2, 2026
9 checks passed
@fumikito
fumikito deleted the feature/user-context-for-ai branch February 2, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

パーソナライズする

1 participant