comment_link хук-фильтрWP 3.6.0

Filters the current comment's permalink.

Использование

add_filter( 'comment_link', 'wp_kama_comment_link_filter' );

/**
 * Function for `comment_link` filter-hook.
 * 
 * @param string $comment_permalink The current comment permalink.
 *
 * @return string
 */
function wp_kama_comment_link_filter( $comment_permalink ){

	// filter...
	return $comment_permalink;
}
$comment_permalink(строка)
The current comment permalink.

Список изменений

С версии 3.6.0 Введена.

Где вызывается хук

comment_link()
comment_link
wp-includes/feed.php 317
echo esc_url( apply_filters( 'comment_link', get_comment_link( $comment ) ) );

Где используется хук в WordPress

Использование не найдено.