The argument is an array, so you can use multiple key-value pairs, like this:
comment_form(
[
'title_reply' => 'Leave a comment',
'comment_notes_before' => 'some text',
]
);
In your second example you are using curly quotes. These are not valid PHP. Make sure you have the debug enabled during development, so you can see these errors before you push them to the live site.
Related Posts:
- Is it possible to pull comments from facebook into your blog?
- Enable Submit Comment Without Page Reload (Using Ajax)?
- Getting Post Comments for post ID using WP_Query() and a Custom Loop?
- How to use a custom comments template
- Comment visibility
- Get comments for more than one post
- Allowing more elements in comments via functions.php
- Set post comments open function
- “Categories” for comments?
- Allow anonymous comments, but prevent spam [closed]
- Allow guests comments on single post
- Delayed commenting
- An action hook where a comment meta is updated
- Display number of comment replies
- User can post only one comment per day on one page
- Last comment page first with full number of comments?
- Only subscriber role user can comment not other
- customize comment form
- Relaxing unescaped HTML filtering inside tags?
- How to remove the “on” string before recent comments link?
- WordPress comments email notification for authors
- How to get the result of comments_number() as a string instead of printing it out?
- Should I still worry about paginated comments with the latest wordpress versions?
- How to dont allow registered users to comment without being logged in?
- Highlight Author Comments issues
- Why is_wp_error() is not returning false even there’s no defined error
- wp_insert_comment and security
- How can someone submit a comment when my site has no comment field?
- Separete trackbacks/pings and numbered comments
- Show comments in a popup
- Author can only see own post comment and can moderate
- highlight “starred” comments by admin
- How to display html in only the first level of WP comments?
- Set noindex page-comment from Pages 2, 3 and More?
- How can I convert anonymous commenters into registered users?
- your comment awaiting moderation message sometimes not appearing
- Limit comments per user per post
- Filter In Reply comments from WordPress Admin Panel
- How to configure WordPress + plugins to support these commenting features
- Comments vs. Pingbacks next page issue
- WordPress ‘comment counts’ got messed up, because of a plugin – DISQUS
- blank page after submitting a comment
- Remove post navigation links
- Comments invisible after moving WordPress to new server, while commenting still works
- Display only 1 comment and then option to show more
- Notify post author for a new comment on his post?
- cancel reply link results in 404 error
- Prioritizing the wordpress comments
- Which filter/hook to use for styling comments?
- How should I get the original comment while processing the reply
- Comments from vbulletin topic [closed]
- wp.getComments is returning nill, when i called from my iphone app [closed]
- How to override wp_insert_comment()
- I wish to remove, disable or hide the comment authors’ links to their sites from my home page
- How to stop ultimate members to redirect comment authors to user profile?
- Replace comments with a dummy text
- How can I get list of emails of users who commented on a post?
- How modify the comment content persistently based on $wp_query?
- Displaying Posts Depending on Number of Comments and Latest Comments?
- How do I stop the comments going to my email?
- How to implement just the wp commenting area on my custom site?
- anyone can help me to know whats going wrong? [closed]
- Why there is still an approved comment after deleting all?
- Get comment id of the individual comments in comment list when modifying comment posted using comment text filter
- Custom comment field not showing when logged-in
- Comments and post dates not showing up correctly on “posts page”
- get_comment_meta not behaving as expected
- comments_popup_link() – how to load different classes/images according to different comment condition?
- get_comment_author_link not working properly
- How do I get a array, with the right order of the nested comments?
- Display last comments on home page
- How to show last comment on hover?
- Clicking Comment “Reply” Button only replies to first comment
- show comment with statuse
- Is there a way to only allow certain user ranks to comment on a post
- Is there a way to export WordPress comments to a non-wordpress, HTML coded site?
- comment form code redirect to wp_comments_post.php with blank page
- Parent comment’s author display_name
- How to show a list of comments on home page from all posts?
- WordPress Custom Local Avatar not showing in comments
- Create another comment section for WordPress
- Remove text on Comment count
- wp list all users who haven’t commented on a post
- Creating a “walled garden” of comments
- Adding buttons to wp-admin/edit-comments
- Change hyperlink to User Registration page instead of WordPress login page
- Comments closed but enabled on edit screen
- Let user delete comment on front end only
- How to force users to nest their comments
- Insert comment and still use moderation
- Auto approve all comments (editor)
- add field comment [duplicate]
- Let users comment on categories in WordPress
- Loop not displaying comments_popup_link
- Display of comment_date within get_comments?
- Customize comment notification e-mails with HTML
- prevent duplicate comments using wp_insert_comment
- How to disable comments on new blog post, but allow on new products?
- Query comments with non-empty ‘author_url’ value on Admin Comments Screen
- Customize the new comment notifications sent to the post author after the comment is approved