Advertisement
darrenbachan

Untitled

Jun 3rd, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.00 KB | None | 0 0
  1. $args = array(
  2.     'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>'
  3.   'fields' => apply_filters( 'comment_form_default_fields', array(
  4.  
  5.     'author' =>
  6.       '<p class="comment-form-author">' .
  7.       '<label for="author">' . __( 'Name', 'domainreference' ) . '</label> ' .
  8.       ( $req ? '<span class="required">*</span>' : '' ) .
  9.       '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) .
  10.       '" size="30"' . $aria_req . ' /></p>',
  11.  
  12.     'email' =>
  13.       '<p class="comment-form-email"><label for="email">' . __( 'Email', 'domainreference' ) . '</label> ' .
  14.       ( $req ? '<span class="required">*</span>' : '' ) .
  15.       '<input id="email" name="email" type="text" value="' . esc_attr(  $commenter['comment_author_email'] ) .
  16.       '" size="30"' . $aria_req . ' /></p>'
  17.     )
  18.  
  19. );
  20. comment_form( $args );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement