Provider::remove_series_relationships( int $post_id )
Handles the ancillary operations that should be performed when a relevant post series is trashed or deleted.
Contents
Currently, the method will severe a Series relationships when the Series is trashed or deleted.
Parameters
- $post_id
-
(int) (Required) The trashed post ID.
Source
File: src/Events_Pro/Custom_Tables/V1/Series/Provider.php
public function remove_series_relationships( $post_id ) {
$series = tribe( Series::class );
if ( ! $series->is_same_type( get_post( $post_id ) ) ) {
return;
}
( new Relationship() )->delete( $post_id );
}
Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |