request ) ) . '#comments'; $is_ajax_comments = get_option( 'fictioneer_enable_ajax_comments' ); ?>
> $post_id, 'order' => $order ); if ( ! get_option( 'fictioneer_disable_comment_query' ) ) { $query_args['type'] = ['comment', 'private', 'user_deleted']; } else { $query_args['type'] = ['comment']; } // Filter query arguments $query_args = apply_filters( 'fictioneer_filter_comments_query', $query_args, $post_id ); // Query comments $comments_query = new WP_Comment_Query( $query_args ); $comments = $comments_query->comments; // Filter comments $comments = apply_filters( 'fictioneer_filter_comments', $comments, $post_id ); // Comments header fictioneer_comment_header( $comments_count ); // Comment form if ( ! fictioneer_is_commenting_disabled( $post_id ) ) { if ( get_option( 'fictioneer_enable_ajax_comment_form' ) ) { fictioneer_comments_ajax_form_skeleton(); } else { comment_form(); } } else { echo '
' . __( 'Commenting is disabled.', 'fictioneer' ) . '
'; } if ( $comments_count > 1 ) { // Start HTML ---> ?>
0 && user_can( $user, 'moderate_comments' ) ) || ( $count > 0 && ! empty( $_GET['commentcode'] ?? 0 ) ) ) { // Start HTML ---> ?>