2014-05-23 68 views
0

正如标题所示,我想修改或自定义cancel_comment_reply_link而不编辑/wp-includes/comment-template.php自定义cancel_comment_reply_link WordPress

comment-template.php的代码看起来是这样的:

<h3 id="reply-title" class="comment-reply-title"> 
    <?php comment_form_title($args['title_reply'], $args['title_reply_to']); ?> 
     <small> 
      <?php cancel_comment_reply_link($args['cancel_reply_link']); ?> 
     </small> 
</h3> 

基本上,我想获得cancel_comment_reply_link<h3><small>标签都有效的成<div>容器,但我真的不知道如何实现这一目标没有触及comment-template.php

有没有解决方案包含到我的主题functions.php

感谢您的任何帮助。

回答

0

我将完整的comment_form函数复制到我的functions.php中,重命名它,修改它并包含新函数而不是旧函数。