trackback_url()获取当前文章的引用通告地址

目录

描述

Displays or returns the trackback URL for the current post. This tag must be within The Loop.

A trackback URL is where somebody posts a link to their site on your site. In return, they have posted a link to your site on their site and have copied an article you have written.

trackback_url() 描述

用法

 <?php trackback_url(); ?> 

trackback_url() 用法

参数

This tag has no parameters.

trackback_url() 参数

注意

历史

添加于 版本: 0.71

trackback_url() 历史

源文件

trackback_url() 函数的代码位于 wp-includes/comment-template.php.

/* ----------------------------------
 * wordpress之魂 © http://wphun.com
 * ---------------------------------- */
/**
 * Display the current post's trackback URL.
 *
 * @since 0.71
 *
 * @param bool $deprecated_echo Not used.
 * @return void|string Should only be used to echo the trackback URL, use get_trackback_url()
 *                     for the result instead.
 */
function trackback_url( $deprecated_echo = true ) {
	if ( $deprecated_echo !== true )
		_deprecated_argument( __FUNCTION__, '2.5', __('Use get_trackback_url() instead if you do not want the value echoed.') );
	if ( $deprecated_echo )
		echo get_trackback_url();
	else
		return get_trackback_url();
}

trackback_url() 源文件

相关