How would you set Theme Customizer API Previewer Preview URL of a Logged out Page or Login Screen
How would you set Theme Customizer API Previewer Preview URL of a Logged out Page or Login Screen
How would you set Theme Customizer API Previewer Preview URL of a Logged out Page or Login Screen
The login_form_defaults hook does work, but wp-login.php does not use wp_login_form() which runs the login_form_defaults hook, and instead the “Remember Me” checkbox is echoed like this, hence it’s basically unremovable via PHP or there’s no filter to disable (or an argument to bypass) the echo, or empty/modify the markup. So that means, if wp_login_form() was … Read more
There must be some plugin that is causing the issue, you should try disabling all the plugins and reactivating them one by one and see if you find out which plugin (or the theme?) is really causing the issue, if it doesn’t work for you there is always another way. you can create as many … Read more
I have not tried it, but this thread on stackoverflow.com seems to be what you need – Create new admin, wordpress
Changing the AUTH_SALT (and SECURE_AUTH_SALT) from your wp-config.php should fix it
It depends on where your login script is. This is my testscript (saved as ìndex.php`): <html> <head> <title>Testform</title> </head> <body> <?php require_once ‘../wp-load.php’; var_dump($_COOKIE); if ( !( current_user_can(‘level_0′) ) ){ wp_login_form(); } else { ?> <ul> <li><a href=”https://wordpress.stackexchange.com/questions/58764/<?php echo home_url(“/wp-admin/’); ?>”>Admin</a></li> <li><a href=”<?php echo wp_logout_url( get_permalink() ); ?>”>Logout</a></li> </ul> <?php } ?> </body> I installed … Read more
There’s this basic trick: Close brackets, open again, insert what you need, close again. Real life example: $args = array( // some args for the login form ‘value_username’ => ‘User Name” onBlur=”whatever” onFocus=”anotherfoo’; ); wp_login_form( $args ); So we closed the brackets after the Username, then added our additional attributes and left the quotes open … Read more
Why do you not use the default function wp_login_form() for the login form, example: global $user_login; if (is_user_logged_in()) { echo __( ‘Hello’, ‘theme_text_domain’ ) . $user_login . ‘<a href=”‘ . wp_logout_url() . ‘” title=”‘ . __( ‘Logout’, ‘theme_text_domain’ ) . ‘”>’ . __( ‘Logout’, FB_BASIS_TEXTDOMAIN ) . ‘</a>’; } else { wp_login_form(); } the function … Read more
Successful log-ins trigger the action wp_login, failures wp_login_failed. Phone calls are not built-in, you need a separate plugin for that. Example with email: add_action( ‘wp_login_failed’, ‘wpse_79917_login_failed’ ); add_action( ‘wp_login’, ‘wpse_79917_login_success’, 10, 2 ); function wpse_79917_login_failed( $username ) { wp_mail( get_option( ‘admin_email’), ‘Login failed’, ‘custom message’ ); } function wpse_79917_login_success( $user_login, $user ) { wp_mail( get_option( … Read more
You have to edit your redirect function to redirect back to the post where you were before redirection add_action( ‘template_redirect’, ‘login_to_see_content’ ); function login_to_see_content() { if ( is_singular() && ! is_user_logged_in() ) auth_redirect(); // does nothing for logged in users } to this add_action( ‘template_redirect’, ‘login_to_see_content’ ); function login_to_see_content(){ if(is_singular() && ! is_user_logged_in()){ $url= site_url().”/wp-login.php”; … Read more