Tagged: password protection text
How can i add a link to the password protection text like here at XXXXXXXX?
function custom_password_form() {
global $post;
$label = 'pwbox-'.( empty( $post->ID ) ? rand() : $post->ID );
$o = '<form action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" class="post-password-form" method="post">' . __( "Dieser Inhalt ist passwortgeschützt. Erhalten Sie Ihren kostenlosen Zugang hier: XXXXXXXXX " ) . '
<label for="' . $label . '">' . __( "Password:" ) . ' </label><input name="post_password" id="' . $label . '" type="password" size="20" /><input type="submit" name="Submit" value="' . esc_attr__( "Submit" ) . '" />
</form>
';
return $o;
}
add_filter( 'the_password_form', 'custom_password_form' );
OMG, i asked that 5 years ago an get best support of it https://kriesi.at/support/topic/customising-the-password-protected-page/
Sorry for that and please close or delete this thread.
Hi,
Thanks for the update and for sharing a link to the solution. Please open a new thread if you should have any further questions or problems.
Best regards,
Rikard