classes/PodsAPI.php
public function save_setting( $setting, $option_data, $sanitized = false ) {

		if ( ! is_array( $option_data ) || empty( $option_data ) ) {
			return pods_error( __( 'Setting data is required but is either invalid or empty', 'pods' ), $this );
		}

		$conflicted = pods_no_conflict_check( 'settings' );

		if ( ! $conflicted ) {
			pods_no_conflict_on( 'settings' );
		}

		if ( $sanitized ) {
			$option_data = pods_unsanitize( $option_data );
		}

		foreach ( $option_data as $option => $value ) {
			if ( ! empty( $setting ) ) {
				$option = $setting . '_' . $option;
			}

			update_option( $option, $value );
		}

		if ( ! $conflicted ) {
			pods_no_conflict_off( 'settings' );
		}

		return true;
	}
public function save_setting( $setting, $option_data, $sanitized = false ) {

		if ( ! is_array( $option_data ) || empty( $option_data ) ) {
			return pods_error( __( 'Setting data is required but is either invalid or empty', 'pods' ), $this );
		}

		$conflicted = pods_no_conflict_check( 'settings' );

		if ( ! $conflicted ) {
			pods_no_conflict_on( 'settings' );
		}

		if ( $sanitized ) {
			$option_data = pods_unsanitize( $option_data );
		}

		foreach ( $option_data as $option => $value ) {
			if ( ! empty( $setting ) ) {
				$option = $setting . '_' . $option;
			}

			update_option( $option, $value );
		}

		if ( ! $conflicted ) {
			pods_no_conflict_off( 'settings' );
		}

		return true;
	}
public function save_setting ( $ setting , $ option_data , $ sanitized = false ) { if ( ! is_array ( $ option_data ) || empty ( $ option_data ) ) { return pods_error ( __ ( 'Setting data is required but is either invalid or empty' , 'pods' ) , $ this ) ; } $ conflicted = pods_no_conflict_check ( 'settings' ) ; if ( ! $ conflicted ) { pods_no_conflict_on ( 'settings' ) ; } if ( $ sanitized ) { $ option_data = pods_unsanitize ( $ option_data ) ; } foreach ( $ option_data as $ option => $ value ) { if ( ! empty ( $ setting ) ) { $ option = $ setting . '_' . $ option ; } update_option ( $ option , $ value ) ; } if ( ! $ conflicted ) { pods_no_conflict_off ( 'settings' ) ; } return true ; }
Save a set of options

@param string $setting     Setting group name
@param array  $option_data All option data to be saved
@param bool   $sanitized   (optional) Will unsanitize the data, should be passed if the data is sanitized before
sending.

@return bool

@since 2.3.0
Save a set of options