WordPress.org

Ready to get started?Download WordPress

Forums

WP-Members
[resolved] How can I add two diff types of registration for special user and normal users (3 posts)

  1. aryanchoudhary
    Member
    Posted 1 year ago #

    How can I add two diff types of registration for special user and normal users.

    I want 2 forms with different fileds.

    Any Idea??

    Thanks

    http://wordpress.org/extend/plugins/wp-members/

  2. Chad Butler
    Member
    Plugin Author

    Posted 1 year ago #

    I think you could probably use the wpmem_register_form filter and base your returned fields based on the page that the user is on. This is a rough idea:

    add_filter( 'wpmem_register_form', 'my_register_form_filter' );
    
    function my_register_form_filter( $form )
    {
        global $post;
        if( is_page('some-page') ) {
            // use php to filter the generated $form,
            // something like str_replace
        } else {
            // use php to filter the generated $form,
            // something like str_replace.
        }
    
        return $form;
    }
  3. aryanchoudhary
    Member
    Posted 1 year ago #

    Hi,

    Many thanks for your great help.

    Thank you

    Aryan

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags