Disable SEO meta box on page and event in Slim SEO

Disable SEO meta box on page and event in Slim SEO on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'slim_seo_meta_box_post_types', function( $post_types ) {
    return array_diff( $post_types, ['event', 'page'] );
} );