启用线程注释

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了启用线程注释相关的知识,希望对你有一定的参考价值。

  1. /**
  2.  * Enable Threaded Comments
  3.  * http://digwp.com/2010/03/wordpress-functions-php-template-custom-functions/
  4.  *
  5.  **/
  6. function myfunction_enable_threaded_comments(){
  7. if (!is_admin()) {
  8. if (is_singular() AND comments_open() AND (get_option('thread_comments') == 1))
  9. wp_enqueue_script('comment-reply');
  10. }
  11. }
  12. add_action('get_header', 'myfunction_enable_threaded_comments');

以上是关于启用线程注释的主要内容,如果未能解决你的问题,请参考以下文章