delete_postmeta WordPress Action Hook

The delete_postmeta Wordpress hook is called when a post's meta data is deleted. This hook is useful for plugins that need to do something when a post's meta data is deleted, such as cleaning up after themselves or doing some other kind of cleanup.

do_action( 'delete_postmeta', string[] $meta_ids ) #

Fires immediately before deleting metadata for a post.


Parameters

$meta_ids

(string[])An array of metadata entry IDs to delete.


Top ↑

Source

File: wp-includes/meta.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.