', checked( $consent, true, false ), esc_html__( 'Save my Name & Email for the next time I comment.', 'sophia-after-dark' ) ); return $fields; } add_filter( 'comment_form_default_fields', 'sophia_after_dark_comment_form_change_cookies' ); // Add comment notes above form function sophia_after_dark_modify_text_before_comment_form( $arg ) { $arg['comment_notes_before'] = wp_kses_post( '

' . esc_html__( 'All comments are manually reviewed and moderated.', 'sophia-after-dark' ) . '
' . esc_html__( 'Required fields are marked ', 'sophia-after-dark' ) . '*

' ); return $arg; } add_filter( 'comment_form_defaults', 'sophia_after_dark_modify_text_before_comment_form' ); // Add privacy policy consent note below form function sophia_after_dark_modify_text_comment_form( $post_id ) { $link = '' . esc_html__( 'Privacy Policy', 'sophia-after-dark' ) . ''; printf( '%s', sprintf( wp_kses( __( 'By commenting, you consent to our %s.', 'sophia-after-dark' ), array( 'a' => array( 'href' => array() ) ) ), $link ) ); } add_action( 'comment_form', 'sophia_after_dark_modify_text_comment_form' ); ?>

' . esc_html( get_the_title() ) . '' ); } else { printf( /* translators: 1: Comment count, 2: Post title */ esc_html( _nx( '%1$s Comment on “%2$s”', '%1$s Comments on “%2$s”', $sophia_after_dark_comment_count, 'comments title', 'sophia-after-dark' ) ), number_format_i18n( $sophia_after_dark_comment_count ), '' . esc_html( get_the_title() ) . '' ); } ?>

    'ol', 'short_ping' => true, 'reply_text' => __( 'Reply', 'sophia-after-dark' ), ) ); ?>