Skip to content

Instantly share code, notes, and snippets.

@funteractive
Created October 25, 2013 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save funteractive/7150031 to your computer and use it in GitHub Desktop.
Save funteractive/7150031 to your computer and use it in GitHub Desktop.
管理画面で設定した日付+時刻のフォーマットを取得
<?php
function get_option_datetime_format(){
$date_format = get_option( 'date_format' );
$time_format = get_option( 'time_format' );
$format = $date_format . ' ' . $time_format;
return $format;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment