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?
- apply_filters(‘the_content’, $content) vs do_shortcode($content)
- How can I modify the WordPress default widget output?
- Earliest hook to reliably get $post/$posts
- What does (10, 2) mean when used with add_filter
- Clarification on filters and hooks
- How to add filter to __() and _e()?
- Remove “Private” + “:” in title does not work
- Adding a class to the body_class function
- Modify the post/entry wrapper markup in genesis childtheme [closed]
- Where is the proper place to add a filter for pre_get_table_charset?
- Change text of Description in Image Library
- Allowing non-latin characters in registration
- Help debugging PHP filter for wordpress [closed]
- About Hooks and Filters
- Should I use add_action(‘publish_post or add_filter(‘publish_post?
- How to always display a specific post from the search result first
- get_the_excerpt() with fallback like the_excerpt()
- Add a Span Around a Product Title in WooCommerce [closed]
- Filter out some plugin action in wp head / wp_footer
- Filter Gutenberg Blocks Content
- How do I replace a render_callback function for a block?
- check if FILTER(“the_content”) is being executed in `the_post()`
- How to create a link to jump to “Leave a comment” part?
- Change Password Strength Indicator names?
- Limit RSS feed to previous calendar month
- How to stop wrapping comments in P tag
- Is this the proper way of switching the “Edit My Profile” link with my BuddyPress “Extended Profile” link?
- Does auto_update_plugin Filter Work When Put In Theme’s functions.php File
- html tags in gettext hook get escaped
- How to remove action with slashes and arrows?
- Inline Styles on all native blocks
- Set default terms for new posts / CPTs
- Get .subsubsub count of post per status queried using pre_get_posts
- Adaptive product filters for WooCommerce
- Changing WordPress core without hacking core
- Plugin options, presets and filters : can you help me improve my workflow?
- Filter the_content to add something before each element?
- How to display the content HTML of a page without displaying the gallery code as well
- Filter by category and city for doctors and hospitals in wordpress
- Prevent reset password specific user role
- WooCommerce coupon hook argument NULL when using filter woocommerce_get_shop_coupon_data
- Create new custom field that calculates age
- How can I edit comment meta value before it is saved?
- Why current_user_can(‘edit_comment’) always true?
- Redirect after post deleted
- How to stop filter from running on the index.php page?
- Filter Shortcodes when using get_page
- Usage of filters
- Where exactly does the edit_{taxonomy} hook fire?
- How to filter with dropdown in backend for custom data
- Is there any reason for the nested filters to be applied on the first case and not in the second one?
- Best practice: Custom Post Type / Filter / Load more
- Redirect an archive page to its relevant URL-friendly filtered page
- Run `wp_insert_post_data` on all posts
- Show uploaded pdf files dynamically and filter by month name
- How can I pass instance via apply_filters as a parameter?
- how to use substr with get_the_content()
- Add filter return false not working
- How to take shortcode and content separately from a page?
- Display post after choice two taxonomy terms
- Apply a filter str_replace on specific caracters array in the_content()
- get_the_archive_title hook unwanted changes!
- Can’t set properly WordPress add_filter function
- apply_filters to $GLOBALS
- The title of an attachment is not working
- Removing a line from a WP core function (comment_template.php) – filter or other technique?
- How to Add A Rel Filter to All Links?
- Hide H1 Title using the_title filter
- get_the_excerpt on mobile still displays continue reading
- Filter image and text from post format
- Filter and Search
- Remove pipe in views admin page filter
- Hooking/Filtering theme name to add theme directory
- How to use filter in this situation, can not modify the structure using filter