mh_impact_lite_comment_fields

The MH Impact lite mh impact lite comment fields function.

Description

mh_impact_lite_comment_fields( $fields ); 

Parameters (1)

0. $fields
The fields.

Usage

  1. if ( !function_exists( 'mh_impact_lite_comment_fields' ) ) { 
  2. require_once '/includes/mh-custom-functions.php'; 
  3.  
  4. // The fields. 
  5. $fields = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = mh_impact_lite_comment_fields($fields); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/mh-custom-functions.php  
  1. function mh_impact_lite_comment_fields($fields) { 
  2. $commenter = wp_get_current_commenter(); 
  3. $req = get_option('require_name_email'); 
  4. $aria_req = ($req ? " aria-required='true'" : ''); 
  5. $fields = array( 
  6. 'author' => '<p class="comment-form-author"><label for="author">' . __('Name ', 'mh-impact-lite') . '</label>' . ($req ? '<span class="required">*</span>' : '') . '<br/><input id="author" name="author" type="text" value="' . esc_attr($commenter['comment_author']) . '" size="30"' . $aria_req . ' /></p>',  
  7. 'email' => '<p class="comment-form-email"><label for="email">' . __('Email ', 'mh-impact-lite') . '</label>' . ($req ? '<span class="required">*</span>' : '' ) . '<br/><input id="email" name="email" type="text" value="' . esc_attr($commenter['comment_author_email']) . '" size="30"' . $aria_req . ' /></p>',  
  8. 'url' => '<p class="comment-form-url"><label for="url">' . __('Website', 'mh-impact-lite') . '</label><br/><input id="url" name="url" type="text" value="' . esc_attr($commenter['comment_author_url']) . '" size="30" /></p>' 
  9. ); 
  10. return $fields;