From 3408fa62b60c6b8d6ae9176ef0044bc9a248d058 Mon Sep 17 00:00:00 2001 From: Robin Cornett Date: Thu, 26 Feb 2015 15:38:22 -0500 Subject: [PATCH] add filter to archive thumb helper --- includes/helper-functions.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/includes/helper-functions.php b/includes/helper-functions.php index 9fbccb3..1eff8e8 100644 --- a/includes/helper-functions.php +++ b/includes/helper-functions.php @@ -91,7 +91,14 @@ function display_featured_image_genesis_get_default_image_url( $size='displayfea */ function display_featured_image_genesis_add_archive_thumbnails() { - if ( ! is_home() && ! is_archive() && ! is_page_template( 'page_blog.php' ) ) { + $show_on = apply_filters( 'display_featured_image_genesis_archive_thumbnails', array( + is_home(), + is_archive(), + is_page_template( 'page_blog.php' ), + is_search(), + ) ); + + if ( ! in_array( true, $show_on ) ) { return; }