WordPress.org

Ready to get started?Download WordPress

Forums

WP-Members
some sort of reference no. with wp-member plugin? (3 posts)

  1. Chander Dhingra
    Member
    Posted 5 months ago #

    Is is possible to get reference no. or membership no. each time new member register on site with WP-Members plugin

    https://wordpress.org/plugins/wp-members/

  2. Chad Butler
    Member
    Plugin Author

    Posted 5 months ago #

    All users in the wp_users table have a numeric primary key assigned, this is the ID field. However, if you want something besides 1,2,3,etc, then you could generate your own unique number or reference (it need not be numeric).

    After the user registers, there is an action hook wpmem_post_register_data. At that point, the user is registered and the ID is available to you, so you could hook a custom function to that action, create your unique reference code, and save it as a meta field (using http://codex.wordpress.org/Function_Reference/update_user_meta).

  3. Chander Dhingra
    Member
    Posted 5 months ago #

    where can I hook the code for reference no., I am not that much fluent in php.

    And one more thing can I have radio buttons for registration forms?

Reply

You must log in to post.

About this Plugin

About this Topic