trackback_url( bool $deprecated_echo = true )
Displays the current post’s trackback URL.
Parameters
- $deprecated_echo
-
(bool) (Optional) Not used.
Default value: true
Return
(void|string) Should only be used to echo the trackback URL, use get_trackback_url() for the result instead.
Source
File: wp-includes/comment-template.php
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.' ), '<code>get_trackback_url()</code>' ) ); } if ( $deprecated_echo ) { echo get_trackback_url(); } else { return get_trackback_url(); } }
Changelog
Version | Description |
---|---|
0.71 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/trackback_url