Function __global->get_unsubscribe_hash

Definitions

sources/newsletter.php

  • Get the unsubscription hash from a newsletter subscriber hash (salt is not involved).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$hash string No No required parameter N/A N/A Subscriber hash or password

Returns

  • Unsubscription hash
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the unsubscription hash from a newsletter subscriber hash (salt is not involved).
 *
 * @param  string $hash Subscriber hash or password
 * @return string Unsubscription hash
 */

function get_unsubscribe_hash(string $hash) : string