Recipes

  • Recipe: Register a content class

    Register a new content class (a button type) in mam-main. Touches three things: the global $local_app_content registry, the include chain in content-class-manager.php, and a class implementing the duck-typed interface.

  • Recipe: Register a tab-bar button

    End-to-end recipe for adding a custom tab-bar action button: register the button definition (so admins can pick it), enable in admin, and implement the mam_main_add_tab_bar_item_{slug} filter for runtime population.

  • Recipe: Inject custom data into the mobile JSON

    Step-by-step: register a sibling-plugin contribution to mam_get_phone_data_before_send. Pick the right priority, follow the JSON conventions, and integrate with the cursor cache mechanism.

  • Recipe: Gate a sibling plugin behind entitlement

    How to bootstrap a MAM Suite sibling plugin only when mam-main is at the required version and the customer is entitled. Pattern: hook plugins_loaded at priority 11, check mam_check_required_version +…

  • Recipe: Register a scheduled cron task

    Register a cron task with mam-main’s setcron-manager via the mam_cron_manager filter. Backed by FastCron — runs on a fixed external schedule rather than wp-cron.php.

Need Support?

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