You could instead try the following replacement:
/**
* Add itemprop attribute to the comment reply link
*/
add_filter('comment_reply_link', function( $html )
{
if( false === stripos( $html, 'itemprop="' ) )
$html = str_ireplace( '<a ', '<a itemprop="replyToUrl" ', $html );
return $html;
}, 99 );
through the comment_reply_link
filter. The HTML generation, of the comment reply link, only supports a given set of attributes and itemprop
is not among them. That’s why we try the replacement here instead.
Related Posts:
- How do I comment out a block of tags in XML?
- R: Comment out block of code
- How to rearrange fields in comment_form()
- How do I delete all comments from a specific old blog post?
- Removing the “Website” Field from Comments and Replies?
- How to enable comments for pending and draft posts?
- How to load and show comments with AJAX instead of pagination?
- Comments not appearing at all
- A plugin where users can comment with Facebook or Twitter or OpenID [closed]
- Comment Count for each Comment Author
- Show comments from multiple post IDs in comment template
- Hook/Filter before and after comments
- Comment form validation
- Sticky Comments
- Whitelisting Commenters
- Comments number message in password protected post
- Disable Comments Feed
- Use rich text editor in comments?
- Add a custom class to awating comments
- How to add custom comment fields but *only on the comment reply form*?
- I have tried using Plugins to remove 72K comments with no success
- Show only posts which can be commented
- What should I hook to add extra fields to comments?
- Get a variable field of all comments of current post
- Average Score of all ratings in comments
- Warning: call_user_func_array() expects parameter 1 to be a valid callback, func
- How To Disable Comments On New Page
- What is the server IP comment hack
- Do I have to have a nonce for a custom comment field?
- Get last seen date/time in wordpress get_comments() [closed]
- Report spam button
- Recent comments from my blogs only
- show if comment is in moderation
- Disable or Enable Comments on Front end [closed]
- Comment form connection to Gravity Forms
- Add classname comment template from functions.php
- Reject Comments Based on Author Email
- Turning off trackbacks & comments
- Create comments.php form of custom HTML code
- Disqus comments and pingback script – how to change the order?
- To whom do emails get sent via the WordPress comments form?
- Delete all one-word comments
- Is it possible to embed github gists in wordpress comments?
- Comments feed – Undefined named entity: ndash
- warnCommentChanges always being triggered on update
- Using defer or async JavaScript attributes prevents pingbacks and trackbacks from being sent
- Why do I have to manually approve comments from one of my users who already has an approved comment?
- how get comments only on post of current logged in user?
- How to convert WordPress comments to bbPress replies [closed]
- Get declared variable in single.php to work in comments.php without re-declaring it [closed]
- What is causing wp-comments-post.php to redirect to the browser’s IP address?
- Extra Title field for Comments
- Comments offset
- comments_number not displaying
- Get comments only for certain specific users in template file
- How to direct user after comment save
- Show comment pop up links as text only
- Insert Ads “into” comments section in Genesis Themework
- WordPress Recent Comments Widget exclude own comments
- How to get comment images stored as serialized comment meta
- Hide comments on specific pages, not just disable future comments
- Update comment meta for all comments of specific post
- How to permanently delete pages I have already trashed?
- Additional content every x comments
- How to display category name from commenter’s custom post
- Add comment_meta to wp_comment_reply
- How do comments work?
- Can’t reply to comments [closed]
- How to Define Custom Number of Items in Comment Feed
- What’s the difference with trash_comment and wp_trash_comment?
- How can i change the order of comments?
- ask and edit an extra comment field
- infinite loop on page with comments after changing comments.php and header.php
- How include comment and post count of user in this custom query
- Refresh individual comment text via API
- How to filter comments by comment_meta
- How do I refresh “Post Last Modified Time”, as long as comment is updated to Approve status?
- Disallow Comments
- Need to output comment_form() function inside a foreach loop
- stop url changing when user comments
- Comment field override
-   not working in comments
- Badges for Guests based on their comment counts [closed]
- How to add a class to comment submit button?
- Comment section not appearing on posts
- WordPress Comments – Only show part of user name
- Disable comment moderation in multisite
- URLs to user page is broken
- Comments Template shows, but not the comments
- Broken comments section – WordPress 2014 Theme
- Auto disable comments with custom field
- Need an advice about comments
- Force logged in users to provide more data when commenting
- How do I get the comments section to show up?
- By Default, Turn Comments Off for Pages & Leave Comments On for Posts
- same comment list for two posts
- Getting thousands of spam comments
- edit-comments.php in Admin – how to change ‘Comments’ title?
- Stop future commenting on specific post
- Add ACF Quick Edit Columns on Comments