Content class: Share App

Primary responsibility

Invokes the device’s native share sheet with a configured title, body, and URL — typically the app’s App Store / Play Store link, used for “tell a friend” growth flows.


Settings

Setting Type Environment Purpose
share_title text per-button Title text passed to the share sheet
share_body textarea per-button Body text
share_url text per-button URL to share
style_* various per-button Colors, icon

Action token

action = share_listing (yes, the action name says “listing” — it’s the generic share token, frozen for backward compat). source carries the share payload.

For sharing a specific listing or item, sibling plugins typically wire up a mam_main_add_tab_bar_item_share_listing filter that fills source with the post id.


Gotchas

  • action = share_listing despite the generic use. Frozen mobile contract — don’t try to introduce a new share_app action.
  • The OS controls which apps appear in the share sheet. Some destinations (SMS, Mail, Slack) accept all three fields; others (clipboard) only take the URL.

  • Content classes overview
  • Hook: mam_main_add_tab_baritem{slug}

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_share_this_app_button (frozen)
Source file includes/content-classes/local-app-share-this-app-class.php
Last verified 2026-05-02
Contents

    Need Support?

    Can’t find the answer you’re looking for? Don’t worry we’re here to help!