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.


Parameters

$msg

(string)(Required)Error Message. Assumed to contain HTML and be sanitized.


Top ↑

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;
}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.