テキストウィジェットの出力の書き換え

<?php

function exam_plug_text_replace( $text ) {
	if ( is_numeric( $text ) ) {
		$current_date	= date( 'Y/m/d' );
		$text			= absint( $text );
		return date( "Y/m/d", strtotime( "$current_date +$text day" ) );
	}
	return $text;
}

add_filter( 'widget_text', 'exam_plug_text_replace' );
?>

[emulsion_relate_posts]