trackback_url

Display the current post's trackback URL.

Description

(void|string) trackback_url( (bool) $deprecated_echo = true ); 

Returns (void|string)

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

Parameters (1)

0. $deprecated_echo — Optional. (bool) => true
The deprecated echo.

Usage

  1. if ( !function_exists( 'trackback_url' ) ) { 
  2. require_once ABSPATH . WPINC . '/comment-template.php'; 
  3.  
  4. // The deprecated echo. 
  5. $deprecated_echo = true; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = trackback_url($deprecated_echo); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/comment-template.php  
  1. function trackback_url( $deprecated_echo = true ) { 
  2. if ( true !== $deprecated_echo ) { 
  3. _deprecated_argument( __FUNCTION__, '2.5.0',  
  4. /** translators: %s: get_trackback_url() */ 
  5. sprintf( __( 'Use %s instead if you do not want the value echoed.' ),  
  6. '<code>get_trackback_url()</code>' 
  7. ); 
  8.  
  9. if ( $deprecated_echo ) { 
  10. } else { 
  11. return get_trackback_url();