函数文档

wp_init_targeted_link_rel_filters()

💡 云策文档标注

概述

wp_init_targeted_link_rel_filters() 是一个已弃用的 WordPress 函数,用于添加修改目标链接 rel 属性的过滤器。自 WordPress 6.7.0 版本起被标记为弃用。

关键要点

  • 函数 wp_init_targeted_link_rel_filters() 用于初始化修改目标链接 rel 属性的过滤器。
  • 该函数在 WordPress 6.7.0 版本中被弃用,建议开发者避免使用。
  • 函数首次引入于 WordPress 5.1.0 版本。

注意事项

使用此函数会触发 _deprecated_function() 警告,开发者应更新代码以移除对该函数的依赖。


📄 原文内容

Adds all filters modifying the rel attribute of targeted links.

Source

function wp_init_targeted_link_rel_filters() {
	_deprecated_function( __FUNCTION__, '6.7.0' );
}

Changelog

Version Description
6.7.0 Deprecated.
5.1.0 Introduced.