Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
公開された投稿のUNIXタイムスタンプ(「the_date」または「the_time」関数)を取得するにはどうすればよいですか?
Epocパラメータを渡すだけです。the_time()文字列を出力します。get_the_time()他の場所で使用するために変数に返します。
the_time()
get_the_time()
$timestamp = get_the_time('U');
単純な :
$unixTimestamp = time();