A WordPress-centric search engine for devs and theme authors



trackback_url ›

Since0.71
Deprecatedn/a
trackback_url ( $deprecated_echo = true )
Parameters:
  • (bool) $deprecated_echo Not used.
    Required: No
    Default: true
Returns:
  • (void|string) Should only be used to echo the trackback URL, use get_trackback_url() for the result instead.
Defined at:
Codex:

Display the current post's trackback URL.



Source

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

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