WordPress.org

Ready to get started?Download WordPress

Forums

Subscribe2
[resolved] Subscribe from different form (2 posts)

  1. juanarcos
    Member
    Posted 1 year ago #

    Hi!!

    I have a contact form on my page, and also a custom registration form for new users. I'd like to have a checkbox in the custom registration page or in the contact form to give the user the option to subscribe also to the subscribe2 daily digest.

    Is this possible? What is the function that registers a new email in the plugin?

    Many many thanks!!! :-))

    http://wordpress.org/extend/plugins/subscribe2/

  2. mattyrob
    Member
    Plugin Contributor

    Posted 1 year ago #

    @juanarcos,

    You could just call the default WordPress action in your form like this:
    do_action('user_register', $user_id);

    Or call the Subscribe2 core function register_post() with the new user ID passed as the function parameter.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.