WordPress开发者和主题制作者的搜索引擎



wp_init_targeted_link_rel_filters ›

Since5.1.0
已弃用n/a
wp_init_targeted_link_rel_filters ( 没有参数 )
定义在:
文档:

Adds all filters modifying the rel attribute of targeted links.



源码

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' );
	};
}