Hi Tom. I still don’t see that fixed in the RC for GPP 2.0 unless it’s a GP free issue. I currently have this code that works only for posts:
add_filter( 'body_class', function( $classes ) {
if ( is_singular() ) {
$disable_featured_image = get_post_meta( get_the_ID(), '_generate-disable-post-image', true );
if ( $disable_featured_image ) {
$classes = array_diff( $classes, array( 'featured-image-active' ) );
}
}
return $classes;
}, 20);
How do I asjust it to affect pages as well?