How to setup a popup registeration page in wordpress with function.php

You can add the HTML for the area via wp_footer, include the style with wp_enqueue_style(), and include the javascript to show/hide the popup with wp_enqueue_script(). wpse90382_popup_function() { add_action( ‘wp_footer’, ‘wpse90382_popup_html’ ); wp_enqueue_style( ‘your_style’, get_template_directory_uri() . ‘your_stylesheet.css’ ); wp_enqueue_script( ‘your_script’, get_template_directory_uri() . ‘your_javascript.js’ ); } wpse90382_popup_html() { ?> <div>Your HTML</div> <?php } if ( some condition … Read more

Different registration form for different roles

I don’t know how “Cimy User Extra Fields” works, but you can add fields to the user registration page with: function extra_user_profile_fields_wpse_92164() { echo ‘<label for=”extra_field”>’,_(“Extra Field”).'</label>’; echo ‘<input type=”text” name=”extra_field” value=”” size=”25″ id=”extra_field” />’; } add_action( ‘register_form’, ‘extra_user_profile_fields_wpse_92164’ ); To switch subscriber types you could pass in $_GET parameters, which is how the default … Read more

loading custom registration template

Be sure to link that page in your functions page require_once(‘custom-register.php’) cp_head(__(‘Register’,’cp’)); ?> <?php cp_show_errors($errors); ?> <div class=”alert alert”><a class=”close” data-dismiss=”alert”>×</a><strong>Welcome: </strong> <?php _e(‘Complete the fields below to become a member.’, ‘cp’) ?> </div> <div class=”alert alert-info”><a class=”close” data-dismiss=”alert”>×</a><strong>Information: </strong> <?php _e(‘Your password will be mailed to you so use valid email address.’, ‘cp’) ?> … Read more

wp_register() displays logged in user as site admin

Use add_filter in your functions.php file to the default text wp_loginout() and wp_register(). Copy and past following to your function.php file: To change wp_register() text: add_filter(‘register’,’register_text_change’); function register_text_change($text) { $register_text_before=”Site Admin”; $register_text_after=”Edit&nbsp;Your&nbsp;Profile”; $text = str_replace($register_text_before, $register_text_after ,$text); return $text; } To change wp_loginout() text: add_filter(‘loginout’,’loginout_text_change’); function loginout_text_change($text) { $login_text_before=”Log in”; $login_text_after=”Sign-In”; $logout_text_before=”Log”; $logout_text_after=”Logout”; $text = … Read more

Register through url

I see a few possibilities. When you generate the emails (I don’t know how you are doing this but we’ll skip that), register an user for each email generated. Then track the user logins. If, after a week or so, the user has not logged in, delete the user. When you generate the emails, generate … Read more

Register multiple users in one form

Update Found this awesome post http://tommcfarlin.com/create-a-user-in-wordpress/ that helped me solve the issue. It was for a product in Shopp where a user can sign up multiple users for a training course, and each email needed to be registered as a subscriber. This is the final code.. <?php add_action( ‘shopp_order_success’, ‘create_subscribers’ ); function create_subscribers( $Purchase ) … Read more