Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_trackback_url [ WordPress Function ]

get_trackback_url ( No parameters )
Uses:
Returns:
  • (string) The trackback URL after being filtered
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 ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics