Function __global->has_feature

Definitions

sources/addons2.php

  • Find whether a particular feature is available to the software (e.g. it's an addon).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$dependency ID_TEXT No No required parameter N/A N/A Feature name

Returns

  • Whether it is
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find whether a particular feature is available to the software (e.g. it's an addon).
 *
 * @param  ID_TEXT $dependency Feature name
 * @return boolean Whether it is
 */

function has_feature(string $dependency) : bool