How can I add a login/logout link in the sub-nav of my website?
How can I add a login/logout link in the sub-nav of my website?
How can I add a login/logout link in the sub-nav of my website?
What would be the best way to implement Magic Link logins in WordPress?
Short and simple: No. You’ll find a lot of stuff for wp-login.php on trac, but it seems that it won’t change.
you can achieve this very easily with simple using my plugin User Specific Content which lets you display specific content per user name, user id or by user role.
You should be able to hook into the register_form_validation hook (which may be the same hook you’re already using. I’m just not sure where they do the validation) and add something like: function my_register_validation() { if(isset($_GET[‘ref’])){ header(‘Location: http://www.example.com/wp-login?action=register&ref=$_GET[ref]’); } add_filter(‘ my_register_validation’, ‘register_form’); I think that is the right idea the code above is untested but … Read more
By default, the author user role allows users to add, edit, and delete their own pages and posts, but disallows users to edit or delete others’ pages and posts; however, it does not, out of the box, limit users to the creation of a single page or post. If your intent is merely to allow … Read more
Well you could have tried this: try checking your functions.php and wp-login.php file:- try to see if there is some blank spaces at the end -(after ?>)
Oh. It seems like the action I needed was ‘login_init’. Like so: function login_remove_scripts() { wp_deregister_style( ‘wp-admin’ ); } add_action( ‘login_init’, ‘login_remove_scripts’ );
I’m using this kind of code which seems to work (with wp_signon). <?php /* Template Name: Connexion */ global $user_ID; if (!$user_ID) { if($_POST){ $username = $wpdb->escape($_REQUEST[‘username’]); $password = $wpdb->escape($_REQUEST[‘password’]); $remember = $wpdb->escape($_REQUEST[‘rememberme’]); if($remember) $remember = “true”; else $remember = “false”; $login_data = array(); $login_data[‘user_login’] = $username; $login_data[‘user_password’] = $password; $login_data[‘remember’] = $remember; $user_verify = … Read more
Have you tried creating a error? Something like: function wpse_23982_admin_notices() { if ( isset( $_GET[‘extendd-message’] ) && $_GET[‘extendd-message’] == ‘response_error’ ) { add_settings_error( ‘extendd-notices’, ‘extendd-remote-api-fail’, __( ‘There was an error connecting to extendd.com/. Please try again at another time.’, ‘extendd’ ), ‘error’ ); } } add_filter( ‘registration_errors’, ‘wpse_23982_admin_notices’ ); Then on the error do something … Read more