Filter hook 'trackback_url'

in WP Core File wp-includes/comment-template.php at line 1239

View Source

trackback_url

Filter Hook
Description
Filters the returned trackback URL.

Hook Information

File Location wp-includes/comment-template.php View on GitHub
Hook Type Filter
Line Number 1239

Hook Parameters

Type Name Description
string $trackback_url The trackback URL.

Usage Examples

Basic Usage
<?php
// Hook into trackback_url
add_filter('trackback_url', 'my_custom_filter', 10, 1);

function my_custom_filter($trackback_url) {
    // Your custom filtering logic here
    return $trackback_url;
}

Source Code Context

wp-includes/comment-template.php:1239 - How this hook is used in WordPress core
<?php
1234  	 *
1235  	 * @since 2.2.0
1236  	 *
1237  	 * @param string $trackback_url The trackback URL.
1238  	 */
1239  	return apply_filters( 'trackback_url', $trackback_url );
1240  }
1241  
1242  /**
1243   * Displays the current post's trackback URL.
1244   *

PHP Documentation

<?php
/**
	 * Filters the returned trackback URL.
	 *
	 * @since 2.2.0
	 *
	 * @param string $trackback_url The trackback URL.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/comment-template.php
Related Hooks

Related hooks will be displayed here in future updates.