• but there was no good way to make the wizards features carry through the confirmation process.

    You can pass the arguments from the wizard through signupmeta with:

    add_signup_meta filter.

    add_filter( 'add_signup_meta' , 'add_meta_wizard');
    function add_meta_wizard($meta)
    {
    
        $meta['type_option_model_blog'] =  $_POST['type_option_model_blog'];
        return $meta;
    }

    and then on the new_blog_action:

    change the action to get 6 params:
    add_action( 'wpmu_new_blog', array( $this, 'wpmu_new_blog' ),10,6 );

    And get the data:

    $type_option_model_blog_id = $meta['type_option_model_blog'];

    Ihope this helps 🙂

    Koff

Viewing 3 replies - 1 through 3 (of 3 total)
  • Derek

    (@the-ebm-blog)

    Are you currently using this method successfully on our own site? I would love for my members to choose a site template during signup! How would I use the code above (what files to paste it into? Do I replace other code with it?)?

    Please give everyone a detailed description of how to use this code, since I know many of us want the option to have templates on the register page!

    Thread Starter Koff

    (@orenkolker)

    Hi,
    Yes, I am using this on my own site.

    I think this is pretty straight forward.
    The changes are in the plugin files.

    The point is that the writer of the plugin split the process into two stages
    so it will be possible ( I guess) to pass the extra data with a post method,
    However the data can be passed through the meta field in the blogs table in the DB.

    my solution as a lot of changes compared to the plugin, So i think it will be easier to start with this example.

    Does this help?

    Plugin sounds really great!

    Before I attempt the hack I was wondering if you’ll be using @koff’s solution. I know that this can be done as well because I’m using a plugin that is doing this, but it doesn’t have the template selection option. Your code would be quite useful for me, but I’d like my changes to survive your updates in the future.

    Thanks again

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cange the Wizard to One Stage Solution ?’ is closed to new replies.