输出’撤消移至废纸篓’文本以供注释
原型
wp_comment_trashnotice()
源文件
路径:wp-admin/includes/template.php
<?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
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/wp_comment_trashnotice/