Hooks - Code Parrots

Knowledge Base

Hooks

Article Last Updated: March 4, 2021

Hooks

  • `yikes-mailchimp-form-submission` and `yikes-mailchimp-form-submission-{$form_id}` – Do something with the user email + form data on form submission. @params: $email, $merge_variables, $form_id, $notifications
  • `yikes-mailchimp-after-submission` and `yikes-mailchimp-after-submission-{$form_id}` – Do something with only the $merge_variables (note: these actions are fired off directly after `yikes-mailchimp-form-submission`).
  • `yikes-mailchimp-before-submission` and `yikes-mailchimp-before-submission-{$form_id}` – Do something with the $merge_variables before the API request. @params: $merge_variables
  • `yikes-mailchimp-after-form` – Do something after a form has been loaded. @params: $form_id
  • `yikes-mailchimp-before-checkbox` – Do something (e.g. output custom content) before the opt-in checkbox for all integrations.
  • `yikes-mailchimp-after-checkbox` – Do something (e.g. output custom content) after the opt-in checkbox for all integrations
  • `yikes-mailchimp-support-page` – Do something (e.g. output custom content) on the support page (note: we use this to add our support form for premium users).
  • `yikes-mailchimp-edit-form-section-links` – Add additional links to the edit form page next to ‘Custom Messages’.
  • `yikes-mailchimp-edit-form-sections` – Add custom section to the edit form page.
  • `yikes-mailchimp-edit-form-notice` – Hook to display a custom notice on the edit form page.
  • `yikes-mailchimp-shortcode-enqueue-scripts-styles` – Hook to enqueue custom scripts & styles wherever the shortcode is being used. @params: $form_id
  • `yikes-mailchimp-additional-form-fields` – Define additional fields to add below all forms. @params: $form_data
  • `yikes-mailchimp-custom-form-actions` – Add custom action links on the manage forms page (alongside Edit, Duplicate, Shortcode, Delete). @params: $form_id
  • `yikes-mailchimp-list-form-fields-metabox` – Add additional content to the ‘Form Fields’ metabox on the view list page.
  • `yikes-mailchimp-list-interest-groups-metabox` – Add additional content inside of the interest groups metabox on the view list page.

Hooks for Extensions

  • yikes-mailchimp-menu – hook to add additional menu items inside of the “Easy Mailchimp” menu item
  • yikes-mailchimp-settings-field – hook to register additional settings fields for add-ons
  • yikes-mailchimp-ADDON-SLUG-options-path – hook to load up a custom settings page