Function __global->cns_make_predefined_content_field

Definitions

sources/cns_members_action2.php

  • Make a Custom Profile Field from one of the predefined templates (this is often used by importers).Also see the cpf_install source file.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$type ID_TEXT No No required parameter N/A N/A The identifier of the predefined Custom Profile Field

Returns

  • The ID of the new Custom Profile Field
  • Type: AUTO_LINK
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Make a Custom Profile Field from one of the predefined templates (this is often used by importers).Also see the cpf_install source file.
 *
 * @param  ID_TEXT $type The identifier of the predefined Custom Profile Field
 * @return AUTO_LINK The ID of the new Custom Profile Field
 */

function cns_make_predefined_content_field(string $type) : int