Title: Add Filter Statements
Last modified: August 22, 2016

---

# Add Filter Statements

 *  [chanchalkariwala](https://wordpress.org/support/users/chanchalkariwala/)
 * (@chanchalkariwala)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/add-filter-statements/)
 * I’m trying to find where you have placed the add_filters statement
 * I just want to understand what this does
 * $template_type = apply_filters( ‘make_template_content_archive’, ‘archive’, $
   post );

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Melissa](https://wordpress.org/support/users/emdashing/)
 * (@emdashing)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/add-filter-statements/#post-5929754)
 * Hi there,
 * You’ll find our searchable action and filter hooks documentation right here:
 * * [Action & filter hooks](https://thethemefoundry.com/docs/make-docs/advanced/action-filter-hooks/#filters-make_template_content_archive)
 * Hope that helps!
 *  Thread Starter [chanchalkariwala](https://wordpress.org/support/users/chanchalkariwala/)
 * (@chanchalkariwala)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/add-filter-statements/#post-5929785)
 * It doesn’t! The description is hardly sufficient!
    Make is a brilliant theme,
   and clean as well. But it lacks in documentation!
 * SO many functions are being used, whose definitions are not available in functions.
   php! Like the following
    - add_filter for the above apply_filter
    - ttfmake_maybe_show_sidebar
    - ttfmake_get_view()
    - ttfmake_sanitize_choice( get_theme_mod( $thumb_key, ttfmake_get_default( $
      thumb_key ) ), $thumb_key );
 * Right now I’m **assuming** assuming what is happening here! The least that could
   be done was to provide inline comments! It would have been much easier for me
   to customize the child theme
 *  Thread Starter [chanchalkariwala](https://wordpress.org/support/users/chanchalkariwala/)
 * (@chanchalkariwala)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/add-filter-statements/#post-5929786)
 *  [Corey – The Theme Foundry](https://wordpress.org/support/users/coreymckrill4ttf/)
 * (@coreymckrill4ttf)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/add-filter-statements/#post-5929820)
 * Hi [@chanchalkariwala](https://wordpress.org/support/users/chanchalkariwala/)
 * Thanks for the feedback on our documentation. Regarding the `make_template_content_archive`
   filter, [documented here](https://thethemefoundry.com/docs/make-docs/advanced/action-filter-hooks/#filters-make_template_content_archive),
   you can use it to change the name of the template file that gets loaded to display
   post content on archive pages. For example, if you wanted to display different
   HTML markup for the “Video” category archive than the other archives, you could
   create a template file in the partials directory in your child theme and name
   it **content-archive-video.php**. Then you would add a filter that looks something
   like this:
 *     ```
       function child_template_content_archive( $type, $post ) {
       	if ( has_category( 'video', $post ) ) {
       		$type = 'archive-video';
       	}
       	return $type;
       }
       add_filter( 'make_template_content_archive', 'child_template_content_archive', 10, 2 );
       ```
   
 * The other functions you mention all have inline documentation at the place in
   the code where the functions are defined.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Add Filter Statements’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/make/1.10.9/screenshot.jpg)
 * Make
 * [Support Threads](https://wordpress.org/support/theme/make/)
 * [Active Topics](https://wordpress.org/support/theme/make/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/make/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/make/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Corey – The Theme Foundry](https://wordpress.org/support/users/coreymckrill4ttf/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/add-filter-statements/#post-5929820)
 * Status: not resolved