Metabox::delete_fields( int $post_id, array $data )
Delete Virtual Events Meta Fields
Contents
Parameters
- $post_id
-
(int) (Required) Which post ID we are dealing with when saving.
- $data
-
(array) (Required) An array of meta field values.
Source
File: src/Tribe/Metabox.php
public function delete_fields( $post_id, $data ) {
foreach ( Event_Meta::$virtual_event_keys as $key ) {
delete_post_meta(
$post_id,
$key
);
}
}
Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |