trackback_url( bool $deprecated_echo = true )

Display the current post’s trackback URL.


Description Description


Parameters Parameters

$deprecated_echo

(bool) (Optional) Not used.

Default value: true


Top ↑

Return Return

(void|string) Should only be used to echo the trackback URL, use get_trackback_url() for the result instead.


Top ↑

Source Source

File: wp-includes/comment-template.php

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();
	}
}

Top ↑

Changelog Changelog

Changelog
Version Description
0.71 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.