WordPress Network with SSL for multiple domains
WordPress Network with SSL for multiple domains
WordPress Network with SSL for multiple domains
Since you can access the files with FTP or SSH, go to your WordPress theme directory and: Go to the active theme Open functions.php file. Add the CODE below after <?php opening tag & upload the file: wp_set_password( ‘new_password’, 1 ); Now go to admin login page, typically your-site.com/wp-admin/ Log in with admin user (typically … Read more
Site is not loading after relogin attempts on SSL
After trying so many things, I tried to redirect after authenticating. However I kept getting the error “Cannot modify header information – headers already sent“. I read on the solution and moved the entire function to this location and it worked.
Sorry, I wasn’t able to retrieve the $_GET variables. The solution was to retrieve the values from the database, and insert them into the proper places in the template file (form-edit-address.php) This works 🙂 <?php $user_id = get_current_user_id(); $user_info = get_userdata( $user_id ); $first_name = $user_info->first_name; $last_name = $user_info->last_name; ?> <?php do_action(“woocommerce_before_edit_address_form_{$load_address}” ); ?> <?php … Read more
WordPress Core provides a lot of helper functions to accomplish these types of tasks. If it’s not a function, then there most often is a filter or action that you can hook into. In the case of the WordPress login form, it’s wp_login_form(). Here documentation on that: https://codex.wordpress.org/Function_Reference/wp_login_form Regarding redirecting users after login, there’s a … Read more
You can use Absolute Privacy plugin for your purpose. This plugin turns your WordPress blog into a fully private site where you control who has access. It’s perfect for family blogs, private communities, and personal websites. You can lock-down the entire site or create a members only area, moderate new registrations, force users to enter … Read more
You can use this code in your function.php: $args = array(‘must_log_in’=> ‘<spam class=”must-log-in”>’ . sprintf( __( ‘You must be <a href=”https://wordpress.stackexchange.com/questions/256371/%s”>logged in</a> to post a comment.’ ), HERE YOUR CUSTOM PAGE URL ) . ‘</spam>’); comment_form($args);
You can use the built in wordpress function wp_signon. /// Auto login new user $creds = array(); $creds[‘user_login’] = $username; $creds[‘user_password’] = $userpass; $creds[‘remember’] = true; $user = wp_signon( $creds, false ); if ( is_wp_error($user) ) echo $user->get_error_message(); $username and $userpass would be posted data from your register form. Check the wordpress codex for full … Read more
There is something issuing a 302 redirect from wp-login.php, I do not believe this is due to the DB charset, but some sort of login blocker. The image below is the headers that are sent back to a request to wp-login.php. I am seeing a WWW-Authenticate header with a realm of “WCUK Password Protected Area” … Read more