respond_link filter-hookWP 4.4.0

Filters the respond link when a post has no comments.

Usage

add_filter( 'respond_link', 'wp_kama_respond_link_filter', 10, 2 );

/**
 * Function for `respond_link` filter-hook.
 * 
 * @param string $respond_link The default response link.
 * @param int    $post_id      The post ID.
 *
 * @return string
 */
function wp_kama_respond_link_filter( $respond_link, $post_id ){

	// filter...
	return $respond_link;
}
$respond_link(string)
The default response link.
$post_id(int)
The post ID.

Changelog

Since 4.4.0 Introduced.

Where the hook is called

comments_popup_link()
respond_link
wp-includes/comment-template.php 1696
$comments_link = apply_filters( 'respond_link', $respond_link, $post_id );

Where the hook is used in WordPress

Usage not found.