trackback_url

函数


trackback_url ( $deprecated_echo = true )
参数
  • (bool)
    $deprecated_echo
    Not used.
    Required:
    Default: true
返回值
  • (void|string) Should only be used to echo the trackback URL, use get_trackback_url() for the result instead.
定义位置
  • wp-includes/comment-template.php
    , line 1173
引入
0.71
弃用

Displays the current post’s trackback URL.

function trackback_url( $deprecated_echo = true ) {
	if ( true !== $deprecated_echo ) {
		_deprecated_argument(
			__FUNCTION__,
			'2.5.0',
			sprintf(
				/* translators: %s: get_trackback_url() */
				__( 'Use %s instead if you do not want the value echoed.' ),
				'get_trackback_url()'
			)
		);
	}

	if ( $deprecated_echo ) {
		echo get_trackback_url();
	} else {
		return get_trackback_url();
	}
}