コード内容：最近の投稿ウィジェットの投稿リストに日付を追記するコード例
コードの記述先：functions.php
-------------------------------------------------------
<?php
function widget_recent_post_title( $title ) {
    $d = debug_backtrace();
    if( $d[5]['class'] === 'WP_Widget_Recent_Posts' ){
        $title = sprintf( '%s (%s)', $title, get_the_date() );
    }
    return $title;
}
add_filter( 'the_title', 'widget_recent_post_title' );
?>
-------------------------------------------------------