質問編集履歴
2
サンクスページとわかりやすく
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
// .
|
|
17
17
|
// .
|
|
18
18
|
// .
|
|
19
|
-
header('Location:
|
|
19
|
+
header('Location: /thanks');
|
|
20
20
|
}
|
|
21
21
|
add_action('template_redirect', 'send_form');
|
|
22
22
|
```
|
1
処理箇所を記載
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -11,6 +11,11 @@
|
|
|
11
11
|
function.php
|
|
12
12
|
```function.php
|
|
13
13
|
function send_form(){
|
|
14
|
+
// ここに実行したい処理
|
|
15
|
+
// .
|
|
16
|
+
// .
|
|
17
|
+
// .
|
|
18
|
+
// .
|
|
14
19
|
header('Location: https://example.com');
|
|
15
20
|
}
|
|
16
21
|
add_action('template_redirect', 'send_form');
|