WordPress开发者和主题制作者的搜索引擎



update_postmeta ›

Since2.9.0
已弃用n/a
do_action( 'update_postmeta', $meta_id, $object_id, $meta_key, $meta_value )
参数: (4)
  • (int) $meta_id ID of metadata entry to update.
    Required: Yes
  • (int) $object_id Post ID.
    Required: Yes
  • (string) $meta_key Meta key.
    Required: Yes
  • (mixed) $meta_value Meta value. This will be a PHP-serialized string representation of the value if the value is an array, an object, or itself a PHP-serialized string.
    Required: Yes
定义在:
文档:

Fires immediately before updating a post's metadata.





源码

do_action( 'update_postmeta', $meta_id, $object_id, $meta_key, $meta_value );