回答編集履歴
2
ミスがあったため修正。
answer
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
`pre_update_option_(option_name)` フィルタで処理するとか。
|
1
|
+
~~`pre_update_option_(option_name)` フィルタで処理するとか。~~
|
2
2
|
|
3
3
|
【update_option – WordPress私的マニュアル】
|
4
4
|
[https://elearn.jp/wpman/function/update_option.html](https://elearn.jp/wpman/function/update_option.html)
|
@@ -7,8 +7,18 @@
|
|
7
7
|
[https://codex.wordpress.org/Plugin_API/Filter_Reference/pre_update_option_(option_name)](https://codex.wordpress.org/Plugin_API/Filter_Reference/pre_update_option_(option_name))
|
8
8
|
|
9
9
|
---
|
10
|
+
~~
|
11
|
+
いや、こっちか。~~
|
10
12
|
|
11
|
-
|
13
|
+
【update_post_metadata | filter | WordPress | hookr.io】
|
14
|
+
[http://hookr.io/filters/update_post_metadata/](http://hookr.io/filters/update_post_metadata/)
|
12
15
|
|
16
|
+
---
|
17
|
+
|
18
|
+
`updated_post_postmeta` `added_post_meta` とかのフックで処理。
|
19
|
+
|
13
|
-
【
|
20
|
+
【update_metadata() | Function | WordPress Developer Resources】
|
21
|
+
[https://developer.wordpress.org/reference/functions/update_metadata/](https://developer.wordpress.org/reference/functions/update_metadata/)
|
22
|
+
|
23
|
+
【add_metadata() | Function | WordPress Developer Resources】
|
14
|
-
[
|
24
|
+
[https://developer.wordpress.org/reference/functions/add_metadata/](https://developer.wordpress.org/reference/functions/add_metadata/)
|
1
ミスがあったため修正。
answer
CHANGED
@@ -4,4 +4,11 @@
|
|
4
4
|
[https://elearn.jp/wpman/function/update_option.html](https://elearn.jp/wpman/function/update_option.html)
|
5
5
|
|
6
6
|
【Plugin API/Filter Reference/pre update option (option name) « WordPress Codex】
|
7
|
-
[https://codex.wordpress.org/Plugin_API/Filter_Reference/pre_update_option_(option_name)](https://codex.wordpress.org/Plugin_API/Filter_Reference/pre_update_option_(option_name))
|
7
|
+
[https://codex.wordpress.org/Plugin_API/Filter_Reference/pre_update_option_(option_name)](https://codex.wordpress.org/Plugin_API/Filter_Reference/pre_update_option_(option_name))
|
8
|
+
|
9
|
+
---
|
10
|
+
|
11
|
+
いや、こっちか。
|
12
|
+
|
13
|
+
【update_post_metadata | filter | WordPress | hookr.io】
|
14
|
+
[http://hookr.io/filters/update_post_metadata/](http://hookr.io/filters/update_post_metadata/)
|