Provider::snapshot_new_series_state( int $post_id, WP_Post $post, bool $update )
Snapshots the Series post state on creation.
Contents
Parameters
- $post_id
-
(int) (Required) Post ID.
- $post
-
(WP_Post) (Required) Post object.
- $update
-
(bool) (Required) Whether this is an existing post being updated.
Source
File: src/Events_Pro/Custom_Tables/V1/Series/Provider.php
public function snapshot_new_series_state( $post_id, $post, $update ) {
if ( $update ) {
return;
}
if ( ! $post instanceof WP_Post ) {
return;
}
tribe( Autogenerated_Series::class )->checksum_matches( $post );
}
Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |