Google_Sheet_Helpers::maybe_generate_sheet_id( mixed $id )

Method maybe_generate_sheet_id


Parameters Parameters

$id

(Required)


Top ↑

Return Return

(void)


Source Source

File: src/integrations/google-sheet/helpers/google-sheet-helpers.php

	public function maybe_generate_sheet_id( $id ) {

		if ( 0 === (int) $id ) {
			$hashed = sha1( self::$hash_string );
			$id     = substr( $hashed, 0, 9 );
		}

		return $id;
	}