Passing variable from child theme to parent theme
Stick to filtering one value at a time to keep it simple, and add filters for the colors to be used by the child theme: add_filter( ‘post_thumbnail_html’, ‘map_thumbnail’); function map_thumbnail($html) { $my_post = get_post($post->ID); $defaultcolor1 = “#??????”; // parent theme default $defaultcolor2 = “#??????”; // parent theme default $water_color = apply_filters(‘water_color’,$defaultcolor1); $tree_color = apply_filters(‘tree_color’,$defaultcolor2); if($my_post->post_name … Read more