Uses
Uses | Description |
---|---|
wp-includes/l10n.php: __() | Retrieve the translation of $text. |
wp-includes/l10n.php: _e() | Display translated text. |
Output ‘undo move to Trash’ text for comments
File: wp-admin/includes/template.php
function wp_comment_trashnotice() { ?> <div class="hidden" id="trash-undo-holder"> <div class="trash-undo-inside"> <?php /* translators: %s: Comment author, filled by Ajax. */ 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 /* translators: %s: Comment author, filled by Ajax. */ printf( __( 'Comment by %s marked as spam.' ), '<strong></strong>' ); ?> <span class="undo unspam"><a href="#"><?php _e( 'Undo' ); ?></a></span> </div> </div> <?php }
Version | Description |
---|---|
2.9.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_comment_trashnotice