Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1466601

    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' );
    #1466630

    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.

    #1466638

    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

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Add link password protection text’ is closed to new replies.