Hi there,
no – the disable featured image / page header won’t disable the Header Element. You could try this PHP snippet:
add_filter( 'generate_header_element_display', function( $display, $element_id ) {
if ( 123 === $element_id ) { // Only target specific Element
if ( has_post_thumbnail() && get_post_meta( get_the_ID(), '_generate-disable-post-image', true ) === 'true' ) {
$display = false;
}
}
return $display;
}, 10, 2 );
The is will disable element ID 123 if the post has a featured image and if the disable featured image option is true.