code: public function restart_rating( $post_id, $post, $update ) {
  
  		App::setCurrentID( 'EFG' );
  
  		if ( Module::CustomRatingGrifus()->getOption( 'restart-when-add' ) ) {
  			unset( $_POST['imdbRating'], $_POST['imdbVotes'] );
  			if ( App::main()->is_after_insert_post( $post, $update ) ) {
  				if ( ! $this->model->get_movie_votes( $post_id ) ) {
  					$votes = $this->get_default_votes( $post_id );
  					$this->set_rating_and_votes( $post_id, $votes );
  					return true;
  				}
  			}
  		}
  
  		return false;
  	}
docs: Restart rating when added or edited post if not done previously.
  
  @param int     $post_id → post ID.
  @param object  $post    → (WP_Post) post object.
  @param boolean $update  → true if update post.