Tribe_Meta_Box::save_field_text_multi( $post_id,  $field,  $old,  $new )

Topics


Source #

File: lib/tribe-meta-box.php

	public function save_field_text_multi( $post_id, $field, $old, $new ) {
		$data = array();
		$new = (array) $new;
		foreach ( $field['ids'] as $id ) {
			foreach ( $new[ $id ] as $key => $value ) {
				$data[ $key ][ $id ] = $value;
			}
		}
		if ( ! empty( $data ) ) {
			update_post_meta( $post_id, $field['meta'], $data );
		}
	}