Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 8 years ago

#4178 closed enhancement (fixed)

Function to delete all post metas of a specific key

Reported by: alphaoide's profile alphaoide Owned by:
Milestone: 2.3 Priority: low
Severity: normal Version: 2.2
Component: General Keywords:
Focuses: Cc:

Description

We need a function which takes a meta key as an argument and deletes all post metas with that specified meta key.

It's useful for a plugin which store some internal metas and need to delete those in its uninstall routine.

Attachments (1)

delete_post_meta_by_key.001.diff (671 bytes) - added by markjaquith 17 years ago.

Download all attachments as: .zip

Change History (4)

#1 @markjaquith
17 years ago

  • Component changed from Administration to General
  • Version set to 2.2

API ++

#2 @ryan
17 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [5976]) delete_post_meta_by_key() from Mark Jaquith. fixes #4178

This ticket was mentioned in Slack in #core by swissspidy. View the logs.


8 years ago

Note: See TracTickets for help on using tickets.