如何在wordpress主题前台添加删除评论功能-WordPress主题

摘要:作为wordpress网站的管理人员,在前台收到一些负面的评论,想及时性的删除掉,常用的方式是通过后台-评论找到对应的评…

作为wordpress网站的管理人员,在前台收到一些负面的评论,想及时性的删除掉,常用的方式是通过后台-评论找到对应的评论点删除或是转到回收站,那今天大挖给大家分享一下如何通过前台看到评论时直接删除该评论,很简单,需要两步的功能函数。

在当前的wordpress主题到functions.php文件中添加如下代码函数,即可生效。

来源:http://www.wazhuti.com/2856.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_13004.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?