只需使用the_title
过滤以连接到标题内容并使用它。
add_filter( \'the_title\', function( $title ) {
// Manipulate the $title as you want and then return that.
// You can add test conditions such as \'is_main_query\'
// (https://codex.wordpress.org/Function_Reference/is_main_query)
return $title;
} );