Title: Add Subscriber by code
Last modified: September 7, 2022

---

# Add Subscriber by code

 *  [muneebkiani](https://wordpress.org/support/users/muneebkiani/)
 * (@muneebkiani)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/add-subscriber-by-code/)
 * Is it possible to add subscriber using global function

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [kishanranawat](https://wordpress.org/support/users/kishanranawat/)
 * (@kishanranawat)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/add-subscriber-by-code/#post-15858674)
 * Hello there,
 * Thank you for contacting us.
 * You can use the following global functions to add subscribers.
    1. **ES()->contacts_db-
   >insert()** This function adds subscribers to the contacts table. 2. **ES()->
   lists_contacts_db->add_contact_to_lists()** This function adds a subscriber to
   lists.
 * For code examples, you can refer to the plugin’s source code.
 * Hope this helps you. Let us know if you have any further queries.
 * Thank you.

Viewing 1 replies (of 1 total)

The topic ‘Add Subscriber by code’ is closed to new replies.

 * ![](https://ps.w.org/email-subscribers/assets/icon-256x256.png?rev=2274172)
 * [Email Subscribers & Newsletters - Email Marketing, Post Notifications & Newsletter Plugin for WordPress](https://wordpress.org/plugins/email-subscribers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-subscribers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-subscribers/)
 * [Active Topics](https://wordpress.org/support/plugin/email-subscribers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-subscribers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-subscribers/reviews/)

 * 1 reply
 * 3 participants
 * Last reply from: [kishanranawat](https://wordpress.org/support/users/kishanranawat/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/add-subscriber-by-code/#post-15858674)
 * Status: not resolved