Filter: gk/block-mcp/agent/login
Name the AI agent's user account to match your house style.
The service account is created and looked up by this login, so it's the username teammates will see in the author dropdown and the users list. Pick something that reads cleanly on the byline — ai-editor, acme-content-bot — or align it with a naming convention your other automation already follows. Set it before the first connection; the login is how the plugin finds the account on every run.
Parameters
| Name | Type | Description |
|---|---|---|
| $login | string | Account login name for the agent. Default 'block-mcp'. |
Example
// Give the agent a friendlier, on-brand username.
add_filter( 'gk/block-mcp/agent/login', function () {
return 'acme-ai-editor';
} );
Since
Source
Defined in wordpress-plugin/gk-block-api/includes/class-agent-provisioner.php at line 185