Modify password protected form.
beans_post_password_form( )
Return: (string) The form.
Source
function beans_post_password_form() {
global $post;
$label = 'pwbox-' . ( empty( $post->ID ) ? rand() : $post->ID );
// Notice.
$output = beans_open_markup( 'beans_password_form_notice', 'p', array( 'class' => 'uk-alert uk-alert-warning' ) );
$output .= beans_output( 'beans_password_form_notice_text', __( 'This post is protected. To view it, enter the password below!', 'tm-beans' ) );
$output .= beans_close_markup( 'beans_password_form_notice', 'p' );
// Form.
$output .= beans_open_markup( 'beans_password_form', 'form', array(
'class' => 'uk-form uk-margin-bottom',
'method' => 'post',
'action' => site_url( 'wp-login.php?action=postpass', 'login_post' ), // Automatically escaped.
) );
$output .= beans_selfclose_markup( 'beans_password_form_input', 'input', array(
'class' => 'uk-margin-small-top uk-margin-small-right',
'type' => 'password',
'placeholder' => apply_filters( 'beans_password_form_input_placeholder', __( 'Password', 'tm-beans' ) ), // Automatically escaped.
'name' => 'post_password',
) );
$output .= beans_selfclose_markup( 'beans_password_form_submit', 'input', array(
'class' => 'uk-button uk-margin-small-top',
'type' => 'submit',
'name' => 'submit',
'value' => esc_attr( apply_filters( 'beans_password_form_submit_text', __( 'Submit', 'tm-beans' ) ) ),
) );
$output .= beans_close_markup( 'beans_password_form', 'form' );
return $output;
}