get_comment_author_url_link [ WordPress Function ]
| Parameters: |
|
| Uses: | |
| Returns: |
|
| Defined at: |
|
Retrieves the HTML link of the url of the author of the current comment.
$linktext parameter is only used if the URL does not exist for the comment author. If the URL does exist then the URL will be used and the $linktext will be ignored.
Encapsulate the HTML link between the $before and $after. So it will appear in the order of $before, link, and finally $after.
Source
<?php
function get_comment_author_url_link( $linktext = '', $before = '', $after = '' ) {
$url = get_comment_author_url();
$display = ($linktext != '') ? $linktext : $url;
$display = str_replace( 'http://www.', '', $display );
$display = str_replace( 'http://', '', $display );
if ( '/' == substr($display, -1) )
$display = substr($display, 0, -1);
$return = "$before<a href='$url' rel='external'>$display</a>$after";
return apply_filters('get_comment_author_url_link', $return);
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- get_comment_author_url_link Wordpress hook details -- Adam ...
Applied to the HTML generated for the author's lnik on a comment, in the get_comment_author_url_link function (which is also called by comment_author_link).
adambrown.info - WordPress › Support » Comment form - URL detection, hook?
It's from wp-includes/comment-template.php, the function get_comment_author_url_link seems to do the sniffing as to whether what the user submitted is a real ...
wordpress.org - get_comment_author_url_link() WordPress function reference ...
Retrieves the HTML link of the url of the author of the current comment.
queryposts.com - get_comment_author_url_link (WordPress Function) - WPSeek.com
WordPress lookup for get_comment_author_url_link, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com