Disable source tracking for logged in users in Metorik Helper

Disable source tracking for logged in users in Metorik Helper on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_action( 'wp_print_scripts', 'mtk_helper_dequeue_scripts' );
function mtk_helper_dequeue_scripts() {
    if (is_user_logged_in()) {
        wp_dequeue_script('metorik-js');
    }
}