Switch language

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




self_link [ WordPress Function ]

self_link ( No parameters )
Defined at:



Display the link for the currently displayed feed in a XSS safe way.

Generate a correct link for the atom:self element.

Source


<?php
function self_link() {
    
$host = @parse_url(home_url());
    
$host $host['host'];
    echo 
esc_url(
        ( 
is_ssl() ? 'https' 'http' ) . '://'
        
$host
        
stripslashes($_SERVER['REQUEST_URI'])
        );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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