Function __global->update_member_username_caching

Definitions

sources/cns_members_action2.php

  • Update caching against a member's username. This doesn't change the username in the actual member record -- it is assumed that this will be done elsewhere.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$member_id MEMBER No No required parameter N/A N/A The member ID
$username ID_TEXT No No required parameter N/A N/A The new username that is being set for them

Preview

Code (PHP)

/**
 * Update caching against a member's username. This doesn't change the username in the actual member record -- it is assumed that this will be done elsewhere.
 *
 * @param  MEMBER $member_id The member ID
 * @param  ID_TEXT $username The new username that is being set for them
 */

function update_member_username_caching(int $member_id, string $username)