wp_comment_trashnotice

Output 'undo move to trash' text for comments.

Description

wp_comment_trashnotice(); 

Usage

  1. if ( !function_exists( 'wp_comment_trashnotice' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wp_comment_trashnotice(); 
  7.  

Defined (1)

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

/wp-admin/includes/template.php  
  1. function wp_comment_trashnotice() { 
  2. ?> 
  3. <div class="hidden" id="trash-undo-holder"> 
  4. <div class="trash-undo-inside"><?php printf(__('Comment by %s moved to the trash.'), '<strong></strong>'); ?> <span class="undo untrash"><a href="#"><?php _e('Undo'); ?></a></span></div> 
  5. </div> 
  6. <div class="hidden" id="spam-undo-holder"> 
  7. <div class="spam-undo-inside"><?php printf(__('Comment by %s marked as spam.'), '<strong></strong>'); ?> <span class="undo unspam"><a href="#"><?php _e('Undo'); ?></a></span></div> 
  8. </div> 
  9. <?php