Title: Add suscriber from function code
Last modified: May 10, 2021

---

# Add suscriber from function code

 *  Resolved [pablogg2](https://wordpress.org/support/users/pablogg2/)
 * (@pablogg2)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/add-suscriber-from-function-code/)
 * I want to use a hook function of other plugin to subscribe a user with the email
   automatically.
 * Are there any function or hook I can use in mc4wp to do it?
 * Regards

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/add-suscriber-from-function-code/#post-14419135)
 * The easiest and most reliable / update safe way would be using our custom integration
   instead of a hook: [https://kb.mc4wp.com/add-sign-checkbox-custom-form/](https://kb.mc4wp.com/add-sign-checkbox-custom-form/)
 * Just add that as a hidden field right into the form that posts the email to WordPress.
 * Other than that you can look at this:
    [https://github.com/ibericode/mc4wp-snippets/blob/master/misc/ajax-endpoint.php](https://github.com/ibericode/mc4wp-snippets/blob/master/misc/ajax-endpoint.php)
 * Hope that helps. If you have any questions, please let me know!

Viewing 1 replies (of 1 total)

The topic ‘Add suscriber from function code’ is closed to new replies.

 * ![](https://ps.w.org/mailchimp-for-wp/assets/icon-256x256.png?rev=1224577)
 * [MC4WP: Mailchimp for WordPress](https://wordpress.org/plugins/mailchimp-for-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailchimp-for-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailchimp-for-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailchimp-for-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailchimp-for-wp/reviews/)

## Tags

 * [hook](https://wordpress.org/support/topic-tag/hook/)

 * 1 reply
 * 2 participants
 * Last reply from: [Lap](https://wordpress.org/support/users/lapzor/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/add-suscriber-from-function-code/#post-14419135)
 * Status: resolved