comment_footer_die() WordPress Function
The comment_footer_die() function is used to end a comment thread. This function will display a message to the user saying that the comment thread is closed and they cannot add any more comments. This function is typically used when a post or page is no longer open for comments.
comment_footer_die( string $msg ) #
Display error message at bottom of comments.
Contents
Parameters
- $msg
(string)(Required)Error Message. Assumed to contain HTML and be sanitized.
Source
File: wp-admin/includes/comment.php
function comment_footer_die( $msg ) { echo "<div class='wrap'><p>$msg</p></div>"; require_once ABSPATH . 'wp-admin/admin-footer.php'; die; }
Expand full source codeCollapse full source codeView on TracView on GitHub