Current File : /var/www/kurt6690.2978.w2868/site96340/wp-content/themes/hopeui/inc/functions.php |
<?php
/**
* The `hopeui()` function.
*
* @package hopeui
*/
namespace HopeUI\Utility;
/**
* Provides access to all available template tags of the theme.
*
* When called for the first time, the function will initialize the theme.
*
* @return Template_Tags Template tags instance exposing template tag methods.
*/
function hopeui() : Template_Tags {
static $theme = null;
if ( null === $theme ) {
$theme = new Theme();
$theme->initialize();
}
return $theme->template_tags();
}