Make WordPress Core

Opened 8 years ago

Last modified 8 years ago

#39706 new enhancement

Add $unique param to add_{$meta_type}_meta actions

Reported by: barryceelen's profile barryceelen Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Options, Meta APIs Keywords:
Focuses: Cc:

Description

The hooks add_{$meta_type}_meta and similar provide context about $object_id, $meta_key, $_meta_value and such, but do not tell whether the meta data added or updated is supposed to be $unique.

Adding this information could be helpful. My use case for instance is propagating meta data across posts.

Change History (1)

#1 @barryceelen
8 years ago

In a similar fashion, the delete_{$meta_type}_meta could have the $delete_all param added.

Note: See TracTickets for help on using tickets.