Function __global->get_cms_cpf

Definitions

sources/users.php

  • Get the value of a special 'cms_' Custom Profile Field. For Conversr it can also do it for a pure field title, e.g. "Example Field".
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$cpf ID_TEXT No No required parameter N/A N/A The CPF name stem
$member_id ?MEMBER No No Null N/A N/A Member to lookup for (null: current member)

Returns

  • The value (blank: has a blank value, or does not exist)
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get the value of a special 'cms_' Custom Profile Field. For Conversr it can also do it for a pure field title, e.g. "Example Field".
 *
 * @param  ID_TEXT $cpf The CPF name stem
 * @param  ?MEMBER $member_id Member to lookup for (null: current member)
 * @return string The value (blank: has a blank value, or does not exist)
 */

function get_cms_cpf(string $cpf, ?int $member_id = null) : string