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 );

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註