Warning: Trying to access array offset on false in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 216
update_postmeta - 在更新文章的meta数据之前立即触发 - WordPress钩子 - WordPress动力
当前浏览:首页 / WordPress钩子 / update_postmeta

do_action( 'update_postmeta', int $meta_id, int $object_id, string $meta_key, mixed $meta_value )

在更新文章的meta数据之前立即触发


Warning: Undefined array key -1 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 185

Warning: Undefined array key 2 in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference-cat.php on line 186

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "e8d15a755d548a52b1e8634c55d8e165" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

Warning: Undefined variable $searchand in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 154

Warning: Undefined array key "695e26344bf6b93a90c09638f4de9e10" in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/wp.php on line 223

postmeta

updatemore...


参数

$meta_idint
要更新的meta数据项的ID。
$object_idint
文章ID
$meta_keystring
meta数据键。
$meta_valuemixed
meta数据值。如果值是数组、对象或本身是PHP序列化字符串,则这将是值的PHP序列化字符串表示。


源码

查看源码 官方文档


更新日志

版本描述
2.9.0开始引入

Warning: Undefined variable $o in /www/wwwroot/www.wpdongli.com/wp-content/themes/WPdongli/functions/reference.php on line 194