Inventory_Presser_Admin_Location_Meta::generate_location_uid( string $salt_string = null )
Creates a unique ID for a phone number or set of hours.
On This Page
Parameters Parameters
Return Return
(string) A string of 12 characters.
Source Source
File: includes/admin/class-admin-location-meta.php
protected function generate_location_uid( $salt_string = null ) { return substr( md5( strval( wp_rand() ) . $salt_string ), 0, 12 ); }
Expand full source codeCollapse full source codeView on Github