Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

login

How to modify the action attribute of the wp-login.php?action=register form?

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

Categories login Tags actions, customization, forms, login, user-registration

Login redirect problem

based on the changes seen in the diff on this trac ticket: http://core.trac.wordpress.org/ticket/17243 i’ve adjusted my redirect to the following ‘redirect’ => ( is_ssl() ? ‘https://’ : ‘http://’ ) . $_SERVER[‘HTTP_HOST’] . $_SERVER[‘REQUEST_URI’] and this seems to work for WP when it is in a subfolder. this will be the new default value starting in … Read more

Categories redirect Tags login, redirect

Login page theming?

You can use some actions and filters on wordpress you can use to customize your login page: Here are some i found in the wp-login.php file action login_head , to output html before the header tag is closed filter login_headerurl to customize the link where the logo goes filter login_headertitle to customize the title of … Read more

Categories templates Tags login, templates

Allow Users Only Edit Their Profile?

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

Categories login Tags community, login, permissions, user-roles

wp-admin returns 404 [closed]

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 ?>)

Categories login Tags login

Why is my cookie not unsetting upon logout? [closed]

looks like I needed add a path to my cookie. This fixed it: $timer = time()+86400; setcookie(‘alertuser’, ‘1’, $timer, “https://wordpress.stackexchange.com/”); and $timer = time()-86400; setcookie(‘alertuser’, ”, $timer, “https://wordpress.stackexchange.com/”);

Categories PHP Tags cookies, login, php

Deregister default wp-admin css on login screen only?

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’ );

Categories login Tags css, login

Show errors on custom login form [duplicate]

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

Categories login Tags errors, login

Users disappeared from wp-admin

you’ll find the user in network admin => users

Categories wp-admin Tags login, users, wp-admin

replace wp-login.php login forms via a hook & use custom forms with wp-login form validation

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

Categories login Tags login, wp-login-form
Older posts
Newer posts
← Previous Page1 … Page111 Page112 Page113 … Page164 Next →
+ More

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 2026 Read For Learn
Next Page »
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress