Function Meta_tree_builder->find_theme_files_from_addon

Definitions

sources/themes_meta_tree.php

  • Find all of a particular kind of file in an addon.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$addon_name ID_TEXT No No required parameter N/A N/A The addon
$subdir ID_TEXT No No required parameter N/A N/A The theme subdirectory we're working against
$theme ID_TEXT No No required parameter N/A N/A The theme

Returns

  • The files
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find all of a particular kind of file in an addon.
 *
 * @param  ID_TEXT $addon_name The addon
 * @param  ID_TEXT $subdir The theme subdirectory we're working against
 * @param  ID_TEXT $theme The theme
 * @return array The files
 */

protected function find_theme_files_from_addon(string $addon_name, string $subdir, string $theme) : array