I just create a site on my Multisite domain (example.com), for instance site1.example.com After this, I try to enter on https://site1.example.com/wp-admin, but I'm redirected to https://www.example.com/wp-signup.php?new=example.com My .htaccess containt this lines: RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L] I have installed, among others, this plugins …
I am using this code as a custom signup form. Is there any chance to create a success message for it? <?php /* ** Template Name: Custom Register Page */ get_header(); global $wpdb, $user_ID; if (isset($_POST['user_registeration'])) { //registration_validation($_POST['username'], $_POST['useremail']); global $reg_errors; $reg_errors = new WP_Error; $username=$_POST['username']; $useremail=$_POST['useremail']; $password=$_POST['password']; if(empty( $username ) || empty( $useremail ) || empty($password)) { $reg_errors->add('field', 'Required form field is missing'); } if ( 6 > strlen( $username ) ) { $reg_errors->add('username_length', 'Username too short. At least …
My hosting provider just moved my newly developed website from my testing domain to the definitive domain. But now my site url say's example.com/wp-signup.php?new=example.com And I don't see the page. The site worked great on my previous domain, the site was moved completely to my main domain, all domain names are changed in the database to my new domain I've been searching on this problem on Google. I did find these two pages Site Redirecting to wp-signup.php My wordpress multisite …
Due to some privacy policy i don't want to store user personal information such as First Name, Last Name and Email address in wordpress database. for this I want to signup user with only username and password at the default WP Registration form, can any one let me know how to remove the email field from the default wordpress registration form. what code need to I change in my wordpress theme, please suggest!
So, I am building a website in react using Wordpress headless server with WooCommerce plugin. I have found that to create a new customer, you have to use the WooCommerce API: https://woocommerce.github.io/woocommerce-rest-api-docs/#create-a-customer But this is only creating a new customer. What I need is to let the user to be able to register its account through a signup to become a customer. So I was planning to use: https://wordpress.org/plugins/wp-rest-user/ So my use case is to have the signup pop-up coming …
I have recently set up a second blog on my Wordpress multisite. The primary blog on the Multisite is www.example.com, and the second blog I have set up two days ago is www.example2.org. Unfortunately, when going to www.example2.org, WordPress redirects to https://www.example.com/wp-signup.php?new= On the same server, I have set up a corresponding test Multisite, with test.example.com being the primary blog and test.example2.org the second blog. It is working without a problem. The Multisite-related .htaccess and wp-config.php settings are the same …
Yes, stuck with creating a custom signup page for WordPress Multisite. It's a well revised question, and many of us is seeking the answer. May be somebody got one, but still, I can't find any solid, holistic one for the issue. I'm trying to find a non .htaccess way - a PHP' or a WordPress' way. Step 1: I studied the most obvious article found in this quest: Using a Custom wp-signup Page With WordPress MU - Chris Wiegman Okay, …
First time working on a directory base WordPress multi-site. I need to add google ReCaptcha in the wp-signup.php page. I just look at the wp-signup.php file and found do_action( 'signup_extra_fields', $errors ); in the show_user_form function to display a google ReCaptcha in the wp-signup.php page. Here is the code how I added the google ReCaptcha box in the registration form ... function mcqacnet_example_callback( $errors ) { printf( '<div class="g-recaptcha" data-sitekey="%s"></div>', 'my-secret-key' ); } add_action( 'signup_extra_fields', 'mcqacnet_example_callback', 99); function mcqacnet_captcha_js_in_footer() { …
I have a custom Ajax login/signup form which logs the user in and invokes location.reload() if the request is successful. My Ajax login works perfectly in desktop browsers using only the wp_signon call. I'm unable to get it to work in mobile browsers where it seems the auth cookie is not being set. I've tried many variations using the following functions and nothing seems to work in mobile browsers. No errors are returned (WP_Error) and the login seems successful but …
I have buy a theme form marketplace. This page is auto login after registration. I want to disable auto registration after login and without approving user by admin user can't login. How can do that? What is the function for this?
I am collecting email on the home page of my website using gravity form, and redirect user to the wp-signup.php page. How can i populate the email field of wp-signup.php with the user entry (email) on gravity form. Will be great of this can be achieved.
I'm using the below script to log the user in, but when I run an if statement for is_user_logged_in(), but it doesn't seem to return the user as logged in. <?php if( isset($_POST['username']) ){ $username = $_POST['username']; $password = $_POST['password']; $remember = $_POST['remember']; $user = get_user_by( 'login', $username ); $user_id = $user->ID; if( $remember == 'on' ){ $remember_pass = true; } else { $remember_pass = false; } if ( $user && wp_check_password( $password, $user->data->user_pass, $user->ID) ){ $credentials = array( 'user_login' …
You can use is_admin to check to see if the current web page is part of WordPress' administrator interface. Is there a way to see if the page being processed is the registration page?
I needed to change two strings shown to the user on the site upon clicking the confirmation links in the email (not to modify the emails sent out). I made the following modifications and it worked.: --- wp-activate.bak 2017-02-28 13:01:03.883175677 +0530 +++ wp-activate.php 2017-02-28 13:47:35.000000000 +0530 @@ -13,6 +13,10 @@ require( dirname(__FILE__) . '/wp-load.p require( dirname( __FILE__ ) . '/wp-blog-header.php' ); +// Changes the header + +require( dirname(__FILE__) . '/wp-custommsg.php' ); + if ( !is_multisite() ) { wp_redirect( wp_registration_url() ); …
is it possible to register user, that his username would be email ? I tried plugin wp-email-login, but it only logs in with email. Where is no registration with email as username... Any ideas ?
I am having trouble selecting signup meta, it always returns empty array. My code is: add_action( 'wpmu_activate_user', 'promote_to_admin', 99 ); function promote_to_admin( $user_id, $password, $meta ) { global $wpdb; $user = get_userdata( $user_id ); $email = $user->user_email; var_dump( $email ); $signup_meta = $wpdb->get_results( "SELECT meta FROM wp_signups WHERE user_email = $email" ); if ( $signup_meta['new_role'] == 'administrator' ) { $user->set_role( 'administrator' ); } } $signup_meta is returned as an empty array. However, when I check the database, the signup_meta array …
Question 1: I'm new to wp and trying to write a plugin for custom register and login. There is a function called wp_signon() which can help to login the user, but can i just use get variables from user and call the function Or i should first filter them?
I googled about customizing wp-signup.php but found no luck. Here's what I need: User will register. During registration process, user will pay first (like paypal or credit card). Create subdomain when user successfully paid. My problem is: How can I add a payment field in wp-signup.php? I am really new to wordpress. Any guide or link is a big help to me. Registration form something like this: username email address gimme a site payment … register button
I have a client who wants me to have 3 steps when a user signs up on our wordpress site. On the first step.. There will be a domain availability checker. If the domain is available, they will proceed on the second step. On the second step.. There will be fields such as: "Email Address" "First Name" "Last Name" A Theme/Template selection Third Step.. PayPal Integration. This will be the payment page. As of now, I am developing this one …
I have a WordPress site with “Sign In”option right side top: http://www.chicago-plastic-surgeons.com/ I want that when login in my WordPress site the then display a “Log Out” option only and “Sign In” would be disappeared like this: http://www.chicago-plastic-surgeons.com/events/ This is my code: <div class="fix floatleft sign_in"> <a href="http://www.chicago-plastic-surgeons.com/wp-login.php">Sign In</a> <a href="http://www.chicago-plastic-surgeons.com/wp-login.php?action=logout& amp;redirect_to=http%3A%2F%2Fwww.chicago-plastic-surgeons.com&amp;_wpnonce=6049e0b736">Log out</a> </div> How could I fix it? Thank you. N.B. Recently I have changed my site home page. So, I have already created and customized wp-login.php file in …