Remove the Google Calendar subscribe link in The Events Calendar

Remove the Google Calendar subscribe link in The Events Calendar on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'tec_views_v2_subscribe_links', function( $subscribe_links ) {
    $subscribe_links['gcal']->set_visibility( false );
 
    return $subscribe_links;
}, 12 );