This filter can be used to set how many bytes the user string should be for identifying the user. The bytes determine the length of random_bytes or openssl_random_pseudo_bytes with which functions the user string is generated.

 * @param int $bytes
 * @return int
add_filter('helpful_user_bytes', function(int $bytes) {
    $bytes = 8; // default: 16
    return $bytes;

Was this post helpful?