
通过MemberPress实现WordPress接入ChatGPT终极指南
wp_comment_trashnotice ( No parameters )
wp_comment_trashnotice: 这是一个动作钩子,当一个评论被移到垃圾桶时,它被用来在评论页面上添加一个通知。它可以用来定制通知或添加额外的功能。
输出评论的’撤销移动到回收站’文本。
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 }