wp_init_targeted_link_rel_filters() WordPress Function

The wp_init_targeted_link_rel_filters() function is used to target specific links with the rel attribute for use with the WordPress Link Manager. This function is called when the Link Manager is first initialized.

wp_init_targeted_link_rel_filters() #

Adds all filters modifying the rel attribute of targeted links.


Source

File: wp-includes/formatting.php

function wp_init_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 ) {
		add_filter( $filter, 'wp_targeted_link_rel' );
	}
}


Top ↑

Changelog

Changelog
VersionDescription
5.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More