wp_comment_trashnotice
Output 'undo move to trash' text for comments.
Description
wp_comment_trashnotice();
Usage
if ( !function_exists( 'wp_comment_trashnotice' ) ) { require_once ABSPATH . '/wp-admin/includes/template.php'; } // NOTICE! Understand what this does before running. $result = wp_comment_trashnotice();
Defined (1)
The function is defined in the following location(s).
- /wp-admin/includes/template.php
- function wp_comment_trashnotice() {
- ?>
- <div class="hidden" id="trash-undo-holder">
- <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>
- </div>
- <div class="hidden" id="spam-undo-holder">
- <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>
- </div>
- <?php