Function __global->get_fields_hook

Definitions

sources/fields.php

  • Get a fields hook, from a given codename.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$type ID_TEXT No No required parameter N/A N/A Codename

Returns

  • Hook object
  • Type: object
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get a fields hook, from a given codename.
 *
 * @param  ID_TEXT $type Codename
 * @return object Hook object
 */

function get_fields_hook(string $type) : object