public function sanitize( $input ) {
		$new_input = [];
		foreach ( array_keys( (array) $input ) as $id ) {
			$new_input[ sanitize_file_name( $id ) ] = sanitize_text_field( $input[ $id ] );
		}

		return $new_input;
	}
public function sanitize( $input ) {
		$new_input = [];
		foreach ( array_keys( (array) $input ) as $id ) {
			$new_input[ sanitize_file_name( $id ) ] = sanitize_text_field( $input[ $id ] );
		}

		return $new_input;
	}
public function sanitize ( $ input ) { $ new_input = [ ] ; foreach ( array_keys ( ( array ) $ input ) as $ id ) { $ new_input [ sanitize_file_name ( $ id ) ] = sanitize_text_field ( $ input [ $ id ] ) ; } return $ new_input ; }
Sanitize each setting field as needed.

@param array $input Contains all settings fields as array keys.

@return array
Sanitize each setting field as needed .