In WordPress, you can use the login_init action hook along with the wp_redirect function. Add the following code to your theme's functions.php file:

// Redirect /wp-login.php to /bejelentkezes

function redirect_login_page() {

    if (strpos($_SERVER['REQUEST_URI'], 'wp-login.php') !== false) {

        wp_redirect(home_url('/bejelentkezes'));

        exit();

    }

}

add_action('login_init', 'redirect_login_page');

This code uses the login_init action hook to check if the user is trying to access the registration page or the login page. If so, it redirects them to the specified URLs.

Make sure to replace /login with the actual URLs you want to use. After adding this code, whenever someone tries to access /wp-login.php will redirect to /login.