generate_comments_title_output

generate_comments_title_output

The generate_comments_title_output filter allows you to change the output of the comment title element.

For example, if we want to change the comment title from

 to

, then we can we this PHP snippet:

add_filter( 'generate_comments_title_output', function( $output, $comments_title ) {
return sprintf(
'

%s

',
esc_html( $comments_title )
);
}, 10, 2 );

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注