1. Home
  2. Intercom Subscription Add On – WeForms
  3. Hooks: Actions and filters

Hooks: Actions and filters

Actions

mplus-intercom-subscription_loaded Runs when the plugin is loaded.
mplus_intercom_subscription_wf_before_submit Runs before the user is created on Intercom. Arguments: ($fields, $integration)
mplus_intercom_subscription_wf_after_submit Runs after the user is created on Intercom. Arguments: ($user_info, $fields, $integration)
mplus_weform_intercom_user_type_before Runs before user type settings fields.
mplus_weform_intercom_user_type_options Runs when user type options added.
mplus_weform_intercom_user_type_after Runs after user type settings fields.
mplus_weform_intercom_fields_before Runs before the intercom settings.
mplus_weform_intercom_fields_after Runs after the intercom settings.

Filters

mplus_intercom_weform_submitted_fields Filter that the subscription form fields are passed to. Arguments: ($fields)
mplus_intercom_weforms_settings Filter that handles settings fields. Arguments: (array)
mplus_intercom_weform_enqueue_mixin Filter that handles weform enqueue scripts. Arguments: ($scripts)
Was this article helpful to you? Yes No

How can we help?