回答編集履歴
5
追記
answer
CHANGED
@@ -27,9 +27,12 @@
|
|
27
27
|
ダッシュボードのイベントの入力画面
|
28
28
|

|
29
29
|
|
30
|
+
カレンダー画面 ( http://example.com/events )
|
31
|
+

|
30
32
|
|
33
|
+
|
31
|
-
個別イベントの表示画面(function 追加前)
|
34
|
+
個別イベント(「test01」をクリックして表示された画面)の表示画面(function 追加前)
|
32
35
|

|
33
36
|
|
34
|
-
個別イベントの表示画面(function 追加後)
|
37
|
+
個別イベント(「test01」をクリックして表示された画面)の表示画面(function 追加後)
|
35
38
|

|
4
修正
answer
CHANGED
@@ -28,8 +28,8 @@
|
|
28
28
|

|
29
29
|
|
30
30
|
|
31
|
-
個別イベントの表示画面(
|
31
|
+
個別イベントの表示画面(function 追加前)
|
32
32
|

|
33
33
|
|
34
|
-
個別イベントの表示画面(
|
34
|
+
個別イベントの表示画面(function 追加後)
|
35
35
|

|
3
追記
answer
CHANGED
@@ -27,5 +27,9 @@
|
|
27
27
|
ダッシュボードのイベントの入力画面
|
28
28
|

|
29
29
|
|
30
|
+
|
30
|
-
個別イベントの表示画面
|
31
|
+
個別イベントの表示画面(fanction 追加前)
|
32
|
+

|
33
|
+
|
34
|
+
個別イベントの表示画面(fanction 追加後)
|
31
35
|

|
2
追記
answer
CHANGED
@@ -14,4 +14,18 @@
|
|
14
14
|
};
|
15
15
|
add_filter( 'eventorganiser_get_schedule_start', 'my_eo_dateformat_tt152713', 10, 4 );
|
16
16
|
add_filter( 'eventorganiser_get_schedule_last', 'my_eo_dateformat_tt152713', 10, 4 );
|
17
|
-
```
|
17
|
+
```
|
18
|
+
|
19
|
+
----
|
20
|
+
(実際にテストして結果の追記)
|
21
|
+
|
22
|
+
新規インストールした WordPress 4.9.8 + twentyseventeen + Event Organiser 3.7.4 の環境を作成して、質問に書いた内容を twentyseventeen の functions.php に記載して動かしてみました。
|
23
|
+
|
24
|
+
特にエラーなく下記のような情歌いです。
|
25
|
+
イベント用のテーマではないので、見た目は違うかもしれませんが... 個別画面の表示に関しては、日付のフォーマットは日本になっているようです。
|
26
|
+
|
27
|
+
ダッシュボードのイベントの入力画面
|
28
|
+

|
29
|
+
|
30
|
+
個別イベントの表示画面
|
31
|
+

|
1
語句の修正
answer
CHANGED
@@ -4,10 +4,11 @@
|
|
4
4
|
|
5
5
|
ドキュメントで、eo_get_schedule_start を検索すると [eventorganiser_get_schedule_start](http://codex.wp-event-organiser.com/hook-eventorganiser_get_schedule_start.html) フックで、カスタマイズできるようです。同様に eo_get_schedule_last も [eventorganiser_get_schedule_last](http://codex.wp-event-organiser.com/hook-eventorganiser_get_schedule_last.html) フックで、カスタマイズできるようです。
|
6
6
|
|
7
|
-
ということで、こんな感じで変更できないでしょうか?
|
7
|
+
ということで、[eventorganiser_get_schedule_start](http://codex.wp-event-organiser.com/hook-eventorganiser_get_schedule_start.html) フックのサンプルに日付フォーマットを変更する部分をはめ込んだだけですが、こんな感じで変更できないでしょうか? (未テストです)
|
8
8
|
|
9
9
|
```
|
10
10
|
function my_eo_dateformat_tt152713( $formatted_date, $end, $format, $post_id ){
|
11
|
+
//Change first value and return it
|
11
12
|
$formatted_date = date( 'Y年m月d日', strtotime( $end->date ) );
|
12
13
|
return $formatted_date
|
13
14
|
};
|