Primary responsibility
Renders a tap-to-call button that invokes the device’s native phone dialer with a configured number.
Settings
| Setting | Type | Environment | Purpose |
|---|---|---|---|
phone_number |
text | per-button | The number to call (E.164 preferred: +15551234567) |
display_label |
text | per-button | Button label (e.g., “Call us”) |
style_* |
various | per-button | Colors, icon |
Action token
The button’s action is phone_call; source carries the formatted phone number. The mobile client constructs a tel: URL and hands off to the OS.
Gotchas
- E.164 format strongly preferred. International apps with mixed-locale numbers should normalize before storing.
- No call tracking. mam-main doesn’t proxy the call or report whether it completed.
- Some devices have no dialer (tablets, some Android variants). The button still renders; tapping it surfaces an OS-level “no app to handle” prompt.
Related articles
- Content classes overview
- Hook: mam_app_settings_get_buttons
Metadata
| Field | Value |
|---|---|
| Article type | Screen Reference |
| Plugin slug | mam-main |
| Applies to plugin version | 2.1.11+ |
| Category | App Settings Reference |
| Audience | WordPress admin / PHP developer |
| Class name | local_app_phone_call_button (frozen) |
| Source file | includes/content-classes/local-app-phone-call-content-class.php |
| Last verified | 2026-05-02 |
