code: public function update_rating( $post_id, $post, $update ) {
  
  		App::setCurrentID( 'EFG' );
  
  		if ( App::main()->is_after_update_post( $post, $update ) ) {
  			if ( isset( $_POST['efg-update-rating'] ) ) {
  				for ( $i = 1; $i <= 10; $i++ ) {
  					if ( ! isset( $_POST[ "efg-rating-$i" ] ) ) {
  						return false;
  					}
  					$votes[ "$i" ] = (int) $_POST[ "efg-rating-$i" ];
  				}
  				$this->set_rating_and_votes( $post_id, $votes );
  			}
  		}
  
  		return true;
  	}
docs: Update rating if the movie editing page is updated.
  
  @since 1.0.1
  
  @param int     $post_id → post ID.
  @param object  $post    → (WP_Post) post object.
  @param boolean $update  → true if update post.
  
  @return boolean