get_trackback_url [ WordPress Function ]
| Uses: | |
| Returns: |
|
| Defined at: |
|
Retrieve The current post's trackback URL.
There is a check to see if permalink's have been enabled and if so, will retrieve the pretty path. If permalinks weren't enabled, the ID of the current post is used and appended to the correct page to go to.
Source
<?php
function get_trackback_url() {
if ( '' != get_option('permalink_structure') ) {
$tb_url = trailingslashit(get_permalink()) . user_trailingslashit('trackback', 'single_trackback');
} else {
$tb_url = get_option('siteurl') . '/wp-trackback.php?p=' . get_the_ID();
}
return apply_filters('trackback_url', $tb_url);
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- get_trackback_url | A HitchHackers guide through WordPress
Feb 12, 2011 ... function get_trackback_url() {}. Retrieve The current post's trackback URL. There is a check to see if permalink's have been enabled and if so, ...
hitchhackerguide.com - Function Reference/trackback url « WordPress Codex
Notes. Uses: get_trackback_url(). Change Log. Since: 0.71. Source File. trackback_url() is located in wp-includes/comment-template.php . Related. pingback ...
codex.wordpress.org - #4800 (Trackback function cleanup) – WordPress Trac
get_trackback_url() set the trackback url to the default setting, then set it again to the correct URL if using permalinks. A minor optimization is to use an else{} to ...
core.trac.wordpress.org - digitalnature » Topics » Problem with Ajaxify my atom
elseif(!comments_open() && pings_open()). atom()->te('Responses are currently closed, but you can trackback from your own site.', ' href=”'.get_trackback_url().
digitalnature.eu