Function Meta_tree_builder->refresh_for_theme

Definitions

sources/themes_meta_tree.php

  • Build out meta-directories for a theme.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$theme ID_TEXT No No required parameter N/A N/A The theme
$filter_level_a ?string No No Null N/A N/A The first level of filter (null: no filter, full rebuild)
$filter_level_b ?string No No Null N/A N/A The second level of filter (null: no filter)
$callback ?mixed No No Null N/A N/A Callback to run on each iteration (null: none)

Preview

Code (PHP)

/**
 * Build out meta-directories for a theme.
 *
 * @param  ID_TEXT $theme The theme
 * @param  ?string $filter_level_a The first level of filter (null: no filter, full rebuild)
 * @param  ?string $filter_level_b The second level of filter (null: no filter)
 * @param  ?mixed $callback Callback to run on each iteration (null: none)
 */

public function refresh_for_theme(string $theme, ?string $filter_level_a = null, ?string $filter_level_b = null, $callback = null)