wp_remove_targeted_link_rel_filters() WordPress Function
The wp_remove_targeted_link_rel_filters() function allows you to remove the link rel filters for the specified target. This can be useful if you want to remove the filters for a certain target, but not for all targets.
wp_remove_targeted_link_rel_filters() #
Removes all filters modifying the rel attribute of targeted links.
Source
File: wp-includes/formatting.php
function wp_remove_targeted_link_rel_filters() { $filters = array( 'title_save_pre', 'content_save_pre', 'excerpt_save_pre', 'content_filtered_save_pre', 'pre_comment_content', 'pre_term_description', 'pre_link_description', 'pre_link_notes', 'pre_user_description', ); foreach ( $filters as $filter ) { remove_filter( $filter, 'wp_targeted_link_rel' ); } }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.1.0 | Introduced. |