• Hello,

    As I was updating my child theme, I noticed a change that requires me to add extra values to hueman/functions/init-front.php at line 55 in order for me to use template files.

    //helper
    //@return bool
    function hu_is_authorized_tmpl( $tmpl ) {
        $ct_map = apply_filters(
            'hu_content_map',
            array( 'tmpl/index-tmpl', 'tmpl/archive-tmpl', 'tmpl/page-tmpl', 'tmpl/single-tmpl', 'tmpl/single-review-tmpl', 'tmpl/search-tmpl', 'tmpl/404-tmpl', 'tmpl/author-tmpl' , 'tmpl/taxonomy-artist-tmpl', 'tmpl/archive-review-tmpl')
        );
        //Are we good after filtering ?
        if ( ! is_array( $ct_map ) || ! is_string( $tmpl ) )
          return;
        return in_array( $tmpl, $ct_map );
    }

    How can I add this change to my custom functions.php?
    Thank you in advance!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Authorize Custom Template’ is closed to new replies.