Make WordPress Core

Opened 19 years ago

Closed 19 years ago

Last modified 10 years ago

#4178 closed enhancement (fixed)

Function to delete all post metas of a specific key

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

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 19 years ago.

Download all attachments as: .zip

Change History (4)

#1 @markjaquith
19 years ago

  • Component AdministrationGeneral
  • Version2.2

API ++

#2 @ryan
19 years ago

  • Resolutionfixed
  • Status newclosed

(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.


10 years ago

Note: See TracTickets for help on using tickets.