deleted_postmeta WordPress Action Hook

The deleted_postmeta Wordpress hook is fired when a post's meta data is deleted. This hook is useful for plugins that need to perform an action when a post's meta data is deleted.

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

Fires immediately after 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.