comment_footer_die

Display error message at bottom of comments.

Description

comment_footer_die( (string) $msg ); 

Parameters (1)

0. $msg (string)
Error Message. Assumed to contain HTML and be sanitized.

Usage

  1. if ( !function_exists( 'comment_footer_die' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/comment.php'; 
  3.  
  4. // Error Message. Assumed to contain HTML and be sanitized. 
  5. $msg = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = comment_footer_die($msg); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/comment.php  
  1. function comment_footer_die( $msg ) { 
  2. echo "<div class='wrap'><p>$msg</p></div>"; 
  3. include( ABSPATH . 'wp-admin/admin-footer.php' ); 
  4. die;