W3cubDocs

/WordPress

apply_filters( ‘respond_link’, string $respond_link, int $post_id )

Filters the respond link when a post has no comments.

Parameters

$respond_linkstring
The default response link.
$post_idint
The post ID.

Source

$comments_link = apply_filters( 'respond_link', $respond_link, $post_id );

Changelog

Version Description
4.4.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/respond_link