Advertisement
fauzanjeg

Profecient || Change HTMl Tag for Title Reply

Oct 14th, 2024
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. /**
  2.  * Change HTMl Tag for Title Reply
  3.  *
  4.  * @param array $defaults The default comment form arguments.
  5.  *
  6.  * @return array
  7.  */
  8. function change_html_tag_for_title_reply( $defaults ) {
  9.     $defaults['title_reply_before'] = '<h6 id="reply-title" class="comment-reply-title">';
  10.     $defaults['title_reply_after']  = '</h6>';
  11.  
  12.     return $defaults;
  13. }
  14. add_filter( 'comment_form_defaults', 'change_html_tag_for_title_reply' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement