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



self_link ›

Since2.5.0
已弃用n/a
self_link ( 没有参数 )
定义在:
文档:

Display the link for the currently displayed feed in a XSS safe way.

Generate a correct link for the atom:self element.



源码

function self_link() {
	/**
	 * Filters the current feed URL.
	 *
	 * @since 3.6.0
	 *
	 * @see set_url_scheme()
	 * @see wp_unslash()
	 *
	 * @param string $feed_link The link for the feed with set URL scheme.
	 */
	echo esc_url( apply_filters( 'self_link', get_self_link() ) );
}