W3cubDocs

/WordPress

do_action( ‘comment_form_comments_closed’ )

Fires after the comment form if comments are closed.

Description

For backward compatibility, this action also fires if comment_form() is called with an invalid post object or ID.

Source

do_action( 'comment_form_comments_closed' );

Changelog

Version Description
3.0.0 Introduced.

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