Google_Sheet_Helpers::maybe_generate_sheet_id( mixed $id )
Method maybe_generate_sheet_id
Contents
Parameters Parameters
- $id
-
(Required)
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; }
Expand full source code Collapse full source code View on Github