comment_type || 'trackback' == $comment->comment_type ) : ?>
  • >
    ', '' ); ?>
  • >
    >
    > %s', get_comment_author_link() ); ?>
    comment_approved ) : ?>

    'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'], 'before' => '', 'after' => '', ) ) ); } add_filter( 'comment_form_defaults', 'generate_set_comment_form_defaults' ); /** * Set the default settings for our comments. * * @since 2.3 * * @param array $defaults * @return array */ function generate_set_comment_form_defaults( $defaults ) { $defaults['comment_field'] = sprintf( '

    ', esc_html__( 'Comment', 'generatepress' ) ); $defaults['comment_notes_before'] = null; $defaults['comment_notes_after'] = null; $defaults['id_form'] = 'commentform'; $defaults['id_submit'] = 'submit'; $defaults['title_reply'] = apply_filters( 'generate_leave_comment', __( 'Leave a Comment', 'generatepress' ) ); $defaults['label_submit'] = apply_filters( 'generate_post_comment', __( 'Post Comment', 'generatepress' ) ); return $defaults; } add_filter( 'comment_form_default_fields', 'generate_filter_comment_fields' ); /** * Customizes the existing comment fields. * * @since 2.1.2 * @param array $fields * @return array */ function generate_filter_comment_fields( $fields ) { $commenter = wp_get_current_commenter(); $fields['author'] = sprintf( '', esc_html__( 'Name', 'generatepress' ), esc_attr( $commenter['comment_author'] ) ); $fields['email'] = sprintf( '', esc_html__( 'Email', 'generatepress' ), esc_attr( $commenter['comment_author_email'] ) ); $fields['url'] = sprintf( '', esc_html__( 'Website', 'generatepress' ), esc_attr( $commenter['comment_author_url'] ) ); return $fields; }