Lost password empty field error redirect to custom login
Lost password empty field error redirect to custom login
Lost password empty field error redirect to custom login
This question is quite outdated, so I’m pretty sure no one is looking at it. However, should anyone end up here, this question isn’t really a WordPress question. Your problem is that on a locally hosted system, you actually have to configure your stack to be able to send email. And if you look in … Read more
This worked for me adding this code in functions.php: add_filter( ‘the_password_form’, ‘wpse_71284_custom_post_password_msg’ ); /** Add a message to the password form. @wp-hook the_password_form @param string $form @return string */ function wpse_71284_custom_post_password_msg( $form ) { // No cookie, the user has not sent anything until now. if ( ! isset ( $COOKIE[ ‘wp-postpass‘ . COOKIEHASH ] … Read more
You can edit the login form from your child themes functions.php using actions such as: function my_login_scripts() { //do stuff here } add_action( ‘login_enqueue_scripts’, ‘my_login_scripts’ ); This should at least allow you to get your jQuery running on the page. You can read more about this here: http://codex.wordpress.org/Customizing_the_Login_Form
More Fields Required For Password protect page
In your functions.php you could create a shortcode that shows the link only if a valid password was supplied. This would look like the following code (untested): function protected_download_handler( $atts ){ if (in_array(@$_REQUEST[‘password’], array(‘password1’, ‘password2’, ‘password3’)) { $return = ‘<a href=”https://wordpress.stackexchange.com/questions/191035/link/to/download/”>Download</a>’; } else { $return = ‘<form action=”” method=”post”> <input type=”text” name=”password”> <input type=”submit”> </form>’; … Read more
Password protect any file in WordPress
It seems like you are insisting on making your life difficult. Implementing any type of API is error prone to the best of developers and real time sync can fail due to network errors, bugs etc, and I would be very hesitant before selecting such an option. Using a network is probably the best option … Read more
Generating the password reset link automatically
Because I couldn’t find an answer on this, I handled it myself by setting my own cookie in the function and checking that. Here is the revised function: function custom_login_init () { $action = isset($_REQUEST[‘action’]) ? $_REQUEST[‘action’] : ‘login’; if ( isset( $_POST[‘wp-submit’] ) ) { $action = ‘post-data’; } else if ( isset( $_GET[‘reauth’] … Read more