auth_redirect

auth_redirect

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('auth_redirect') is found 1 times:

  • /wp-includes/pluggable.php line 1221
    			 * @since 2.8.0
    			 *
    			 * @param int $user_id User ID.
    			 */
    			do_action( 'auth_redirect', $user_id );
    
    			// If the user wants ssl but the session is not ssl, redirect.
    			if ( ! $secure && get_user_option( 'use_ssl', $user_id ) && str_contains( $_SERVER['REQUEST_URI'], 'wp-admin' ) ) {
    				if ( str_starts_with( $_SERVER['REQUEST_URI'], 'http' ) ) {
    					wp_redirect( set_url_scheme( $_SERVER['REQUEST_URI'], 'https' ) );
    					exit;