This documentation describes unreleased changes on the main branch.

wp_login_url()

Twig function of the framework; its result is escaped like any value.

{{ wp_login_url(redirect = '') }}

The URL of the login page, as returned by wp_login_url().

<a href="{{ wp_login_url(wp_post_url(attrs.target)) }}">Log in</a>
ParameterTypeDefaultDescription
redirectstring''URL to go to after logging in; '' for the default of WordPress.

Returns string