• I will like to know how I can validation to a textbox.
    I added a textbox for when posting a comment.
    This textbox needs to be checked and validated when someone tries to submit a new comment.

    $required_text = sprintf( ' ' . __('Required fields are marked %s',CURRENT_THEME), '<span class="required">*</span>' );
    $defaults = array(
    'comment_rules'  => '<p class="comment-form-comment_rules"><input type="checkbox" id="comment_rules" name="comment_rules" value="1"></input><label for="rules">' . _x( 'By clicking here, I agree that my comment meets the <a href="#">Rules of Engagement</a>.', 'noun',CURRENT_THEME ) . '</label></p>'.'',

    I am totally new to WordPress Development.
    And I am lost trying to make this check box valid.

    Any help will be very appreciated.

    Thank you

The topic ‘Validation to Checkbox’ is closed to new replies.