set_wordpress_connection
Finish connecting a site. For SSH: pass ssh_ip + username (from hPanel; port 65002, WP root ~/public_html by default). For the plugin method: pass site_url + wp_username + app_password (the WordPress Application Password). Auto-verifies either way.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ssh_ip | No | SSH method: IP shown in hPanel after enabling SSH | |
| site_id | Yes | The WordPress site ID from connect_wordpress | |
| wp_root | No | SSH method: override WordPress root (default ~/public_html) | |
| wp_user | No | WordPress user (optional) | |
| site_url | No | Plugin method: site URL, e.g. https://example.com | |
| username | No | SSH method: username shown in hPanel | |
| wp_username | No | Plugin method: WordPress username for the Application Password | |
| app_password | No | Plugin method: the WordPress Application Password |