Hi there,
You’ll find our searchable action and filter hooks documentation right here:
* Action & filter hooks
Hope that helps!
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
Hi @chanchalkariwala
Thanks for the feedback on our documentation. Regarding the make_template_content_archive filter, documented here, 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.