Title: Authorize Custom Template
Last modified: May 5, 2017

---

# Authorize Custom Template

 *  [FadingMusic](https://wordpress.org/support/users/fadingmusic/)
 * (@fadingmusic)
 * [9 years ago](https://wordpress.org/support/topic/authorize-custom-template/)
 * 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)

 *  [Bamwempan](https://wordpress.org/support/users/bamwempan1/)
 * (@bamwempan1)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/authorize-custom-template/#post-9159569)
 * I need solution too ! Up 🙂
 * Thanks

Viewing 1 replies (of 1 total)

The topic ‘Authorize Custom Template’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/hueman/3.7.27/screenshot.png)
 * Hueman
 * [Support Threads](https://wordpress.org/support/theme/hueman/)
 * [Active Topics](https://wordpress.org/support/theme/hueman/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/hueman/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/hueman/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Bamwempan](https://wordpress.org/support/users/bamwempan1/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/authorize-custom-template/#post-9159569)
 * Status: not resolved