Porter_PastStatusUpdater
Location
What it does
Minimum implementation
class EventPastStatusUpdater extends Porter_PastStatusUpdater {
protected function get_post_type() {
return 'event';
}
protected function get_date_source( WP_Post $post ) {
return get_post_meta( $post->ID, 'end_date', true );
}
protected function get_meta_key() {
return 'event_has_past';
}
protected function children_inherit_parent_status() {
return false;
}
}
new EventPastStatusUpdater();Required and optional methods
Method
Required
Purpose
Accepted date formats
Lifecycle
Manual triggers
Migration behaviour
Notes
Last updated