Tribe__Events__Meta__Save::maybe_save()
Conditionally save the meta.
Will save if the context is the expected one; will call save method.
Return
(bool) true if event meta was updated, false otherwise.
Source
File: src/Tribe/Meta/Save.php
public function maybe_save() {
// only continue if it's an event post
if ( ! $this->is_event() ) {
return false;
}
if ( $this->context->doing_ajax() ) {
return false;
}
// don't do anything on autosave or auto-draft either or massupdates
if ( $this->is_autosave() || $this->is_auto_draft() || $this->context->is_bulk_editing() || $this->context->is_inline_save() ) {
return false;
}
// don't do anything on other wp_insert_post calls
if ( $this->is_auxiliary_save() ) {
return false;
}
return $this->save();
}