src/components/Utility.php
public static function sanitize_handle( $handle = null ) {

		$handle = sanitize_key( $handle );
		$handle = str_replace( '-', '_', $handle );

		return $handle;
	}
public static function sanitize_handle( $handle = null ) {

		$handle = sanitize_key( $handle );
		$handle = str_replace( '-', '_', $handle );

		return $handle;
	}
Sanitizes and validates a handle name.

@param string $handle The provided handle name.

@return string The sanitized handle name.