Try this code:
add_filter( 'wp_targeted_link_rel', '__return_false', 9999 );
function widget_text_replace($text) {
$search = array('rel="noopener"');
$replace = array('');
$text = str_replace($search, $replace, $text);
return $text;
}
add_filter('widget_text', 'widget_text_replace');
Related Posts:
- Shortcode from a widget is wrapped in unwanted element
- Format content value from DB outside of WordPress filters
- apply_filters(‘the_content’, $content) vs do_shortcode($content)
- How can I modify the WordPress default widget output?
- No filter of code on switch from html to visual editor, how?
- How to get shortcode’s input values inside a filter?
- Filter specific shortcode output?
- Insert Custom HTML After Shortcode
- Is there a way to add another row to the tinyMCE kitchen sink toggle?
- How to hook into unregistering a widget instance?
- How can I extend the Gutenberg table block transform to allow colspans/rowspans on pasted table elements?
- add_filter and changing output captions of image gallery
- Filter Widget Title Wrap
- Is it possible to remove the filter from 4.8 text widget?
- How to add attribute to output with wp_video_shortcode add_filter
- Anyway to edit the titlebar of WordPress Widgets in the Admin area?
- Search content for shortcodes and get parameters
- Change default settings used by gallery shortcode
- Shortcodes not resolved in AJAX call response
- Ajax, filters and shortcodes
- Unfiltered html in widget title not working
- Use content custom filter for all shortcodes
- How to link current user to their author page through shortcodes
- filter title from shortcode
- how to remove filter from wordpress shortcode output
- How to add Shortcode (font awesome) in widget title?
- WordPress tag cloud add more links
- Error when overriding only some audio shortcode HTML output
- Remove tags from the kses filter
- How to use shortcode attribute in separate function
- How to add a class to Tag cloud widget link?
- How to make a widget expand wider than the column width when editing its settings in the admin
- Warning: Missing argument 2 for widget_title filter
- ‘the_content’ filter removing html tags from post content
- html tags in gettext hook get escaped
- Shortcodes — Using add_action, add_filter in the shortcode
- How to pass variables to custom filter from multiple functions
- How to filter backend post list showing only posts having a shortcode
- Make WP not format code, not insert line breaks in between tags
- Add Bootstrap Classes to Recent Posts Widget
- How can I return shortcode output to the top of the content?
- the_excerpt filter doesn’t work as expected
- run shortcode in excerpt of single custom post type
- Filter everything from content except output of a shortcode
- Something is filtering my shortcodes… Can’t figure out what
- include specific Pages to wp_list_pages with filter
- How to use do_shortcode_tag to modify the output of a shortcode?
- How to change dynamically page title according to variable data?
- How can I filter tag_description()?
- WordPress removing slashes from shortcode output
- Adding html banner to posts
- I’ve set up an extra field for all the available widgets. How do I show it’s value in the front-end?
- How to remove shortcode(s) from WYSIWYG Page editor for Non Admins
- Shortcode / plugin with custom (flexible) output
- Filter Shortcodes when using get_page
- Parse a shortcode differently based on on what it’s nested in
- Need to return shortcode text instead of the output
- add_filter to the_content after apply_filters
- post_orderby filter breaks function
- Line Breaks are stripped off when direction property is found
- the_content getting current page content instead specified ID
- Override wordpress audio playlist
- Archive Widget – Count only parent posts
- how to output HTML tags in post_content and not as plain text
- How to wrap pattern-matches from the_content in [wiki]-shortcode tags
- Widget image reorganize layout
- How can I change the button text of a custom widget?
- Add Index to Item in WordPress Gallery
- create a shortcode with acf including a filter
- How to take shortcode and content separately from a page?
- WordPress Tag Cloud Filter Prevents Widget HTML from loading
- How to completely prevent WordPress from destroying/modifying my shortcode outputs?
- How can I add a prefix to titles displayed in sidebar using function.php?
- Auto-generated excerpt with shortcode and read more button/text link
- Filter WordPress Archive Widget to exclude posts with specific custom taxonomy term id
- Output dynamic_sidebar_params in wp_head
- shortcode function outputs multiple anchor tags
- apply_filters to $GLOBALS
- Change shortcode output (filter?)
- Filter on widget-title does not work with custom links
- Is it possible to include the add_filter() function within a shortcode function
- Activate short codes for all post queries?
- Problem with shortcodes in external file
- How can I display wp_link_pages before a shortcode, if it is used, or display after content?
- How to use apply_filters(‘get_calendar’) to change get_calendar() output?
- Filter widget_pages_args not working in Pages Widget
- Limit total tags in the_content
- Don’t replace “|” with Empty String (“”) when generating slugs from title
- Widget Area: Modify $param[‘xy’] from widget-$n
- Raw output (preventing wpautop)
- Search results sorted by post types
- Filter or Hook to catch pre-rendering of post content
- check to see if hook is available
- Filter users by custom colum not meta key
- Remove filter callback: method in class
- Access get_the_title() from ‘excerpt_length’ filter
- How do I add a line break to a string that is output by PHP?
- How to return html as a string from php for WordPress
- Joining tables not working in the post editor page
- Auto append text after the title?