The rel=ugc
is added by a default filter on pre_comment_content
. You can disable this by adding the following line to your functions.php
:
remove_filter ('pre_comment_content', 'wp_rel_ugc', 20);
This may not be wise. If at some point you change your mind, you would have to go through all comments to add it. It is problably better to use the solution to which you link. This one lets the filter add rel=ugc
when the comment is saved into the database and only removes it every time the comment is displayed on a page.
Related Posts:
- I want to allow the use of a data-flw attribute in links in comments
- Remove Comment Author Link only for subscribers
- Add custom options to the wplink dialog
- Is it possible to filter comments in a post so a user can only see the comments they have written?
- Modify links when inserted by WYSIWYG editor
- How to enable visual editor when editing comments on the dashboard?
- Adding custom column to comments admin panel?
- Why anything done on comments_array hook gets reset?
- How Does comment_author Filter Work?
- How to modify core when there is no hook?
- How to validate recaptcha on comments form?
- Comment search plugin
- Filtering Comment Reply Links (comment_reply_link_args) for “infinite replies” in nested comments
- How to customize the “Insert/edit link” popup box?
- How to allow code block in wordpress comments
- Use of comment_reply_link_args filter
- Use has_filter on comment_post
- Remove comments validation (remove filter?)
- How do I add tags to entire comments, not just their text
- comment_notification_text filter not working
- Modify author url display in edit-comments.php
- How can I filter the comment action links so that I can display the actions links based on user capabilities?
- Adding link options in insert/edit link dialog window
- How to redirect a unique link based on login status
- Converting restricted html in comments to bbcode
- How to increase comment length?
- Admin New Order: Autofocus on Search a product
- Is there a hook or filter that adds a button to the left of the search box?
- Why does using excerpt_more filter change link location?
- NextGEN Gallery: Adding drop-down menu widget to gallery view without modifying plugin code [closed]
- How to filter part of a variable if it is no array?
- filter a list by gender
- str_replace css meta tag?
- How do you disable the verification process of user email changes?
- How to use apply_filters(‘get_calendar’) to change get_calendar() output?
- How to add custom HTML attribute to reusable block div in WordPress admin
- Modify the third (context) parameter in a filter?
- How to change this WP logo and posts url in block editor?
- Filter and manipulate the get_current_user() function
- Footnotes with dynamic title attributes?
- add_filter(‘the_content’, ‘method’) does not trigger my custom method
- Can you call a filter hook by “add_action”?
- WordPress wp_lazy_loading_enabled returns loading attribute set to lazy
- Why isn’t this add_filter function working as expected?
- Better way to change the default password reset url with the woocommerce one?
- Add a filter conditionally based on frontpage
- woocommerce_coupon_is_valid_for_product not working to exclude specific product tag
- Filter widget_pages_args not working in Pages Widget
- Hooking/Filtering theme name to add theme directory
- How to elect position of new item output in a dropdown when using add_filter
- This code works, but breaks the media uploader. How do I integrate it in a way that won’t?
- Replacing text using add_filter
- Using two posts_orderby add_filter makes conflict
- Background color and background image below element in Contact Form 7 – error tip [closed]
- Query Multiple Filters, one with Meta
- How to remove a filter that is an object method?
- Passing value from one hook to another
- Deregister Custom the_title Filter for edit_post_link
- custom post filter based on Visitors country
- Filter a custom post type by custom field in admin
- How to correctly override a filter?
- Change CPT Edit Target Link for Admin List
- Limit total tags in the_content
- Is there a way to check if the ‘wp_sitemaps_enabled’ is true or false?
- How to use filter in this situation, can not modify the structure using filter
- Block Gutenberg Editor manually by User Roles with a Filter with code
- Is it possible to dynamically change the “page_for_posts” option?
- Change password reqts with NO plugin without breaking resetpass link?
- Using the REST API filter, including two meta_queries breaks the response for one custom post type
- How can I conditionally add the filter option_home?
- Search and Filter Using Custom Post Type, Custom Taxonomy, and Advanced Custom Fields
- Adding filter to the Contact Form 7 response
- posts_results filter – additional sort, with a meta value, to move posts to the end of the results, with pagination working
- How to use parse_query() to add an additional filter based on content to page search?
- FacetWP was unable to auto-detect the post listing : Having an issue with ACF load choices causing FacetWP error
- How to change content hash value, within the_block_template_skip_link action?
- add_filter – create_function pb in PHP8
- How to apply_filter / add_filter within 2 others (simultaneous?) add_filter
- How to Dynamically Switch WordPress Front Page Without Causing Canonical Redirect?
- Change or replace user_profile_picture_description filter, to stop stripping whitespace
- Woocommerce price filter widget always shows max price of most expensive product in the whole shop
- remove_function method removing next priority action too while removing current priority
- Are blocks that are converted to patterns no longer filterable through the_content?
- How to use add_filter to add the extra data to existing array?
- wc_get_template_part filter not working
- hook on the_excerpt
- Deactivate code made with add_filter
- Why wordpress doesn’t allow to add author filter to media library page in grid mode
- ‘Problem’ with login_redirect filter – why does it lose the redirect_to parameter
- Is there a way to override only a portion of the function print_media_templates defined in wp-includes\media-template.php?
- How could I create real-time filtering in this case?
- Remove links to the comments section
- How to filter products by category in custom loop
- How to use render_block filter in Gutenberg when editing a page?
- WordPress REST API and Backbone JS
- “Invalid parameter(s): attributes” issue in context of “blocks.registerBlockType” filter
- How do I query Pending posts?
- How to override hook from themes functions.php which is defined in plugin
- Load More : Admin Ajax 400 Bad request, returning 0
- wp reset password page – head inline script