$_img ) { if ( substr( $_img , 0, strlen( "{$img_name}" ) ) === "{$img_name}" ) { unset( $new_candidates[ $_key ] ); } } $GLOBALS['prevcontent_img'] = $new_candidates; return get_template_directory_uri() . '/include/wd-prevcontent/img/' . $img_name; } /** *thumbnail image * @param string $input Post thumbnail. */ function business_a_the_post_thumbnail( $input ) { if ( empty( $input ) ) { $placeholder = business_a_get_prevmode_img_src(); return ''; } return $input; } add_filter( 'post_thumbnail_html', 'business_a_the_post_thumbnail' );