Skip to content

Add the_password_form_redirect_url filter to get_the_password_form().…#1

Open
Regnalf wants to merge 4 commits intotrunkfrom
feature/64785-password-form-redirect
Open

Add the_password_form_redirect_url filter to get_the_password_form().…#1
Regnalf wants to merge 4 commits intotrunkfrom
feature/64785-password-form-redirect

Conversation

@Regnalf
Copy link
Owner

@Regnalf Regnalf commented Mar 3, 2026

Description

This PR introduces a new filter the_password_form_redirect_url in get_the_password_form() to allow developers to customize the redirect destination after a password has been entered.

Currently, this is hardcoded to the post's permalink. In scenarios like "Public Preview Links" or headless setups, the standard permalink might not be the correct return-to URL. This filter provides a clean way to modify the URL without parsing the entire HTML form.

Trac ticket: https://core.trac.wordpress.org/ticket/64785

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant