Access to customer profile with pin code

Users aren’t stored as a post type like most other content in WordPress so you can’t use the per-page password feature in core. You can add a custom meta field to Users for the pin and then add some functions for displaying/handling the form, checking if the pin is valid, and so on. Another option … Read more

Changing auth_redirect() page

Please try this code. function redirect_user() { if ( is_user_logged_in() && ! is_page( ‘login’ ) ) { $return_url = esc_url( home_url( ‘/your-custom-login-page/’ ) ); wp_redirect( $return_url ); exit; } } add_action( ‘template_redirect’, ‘redirect_user’ );

File not found.