Match post type category slugs instead of default post category slugs

add_filter( 'vcex_grid_query', function( $args, $atts ) {

    if ( is_singular( 'post' ) ) {
        $current_post_slug = get_post_field( 'post_name' );
        $args['category_name'] = $current_post_slug;
        $args['post_type'] = 'post';
    }

    return $args;

}, 10, 2 );

These query args match default post term (category) slugs with default post title slugs.

But I want it to match post type term (category) slugs with default post title slugs.

How do I change the code to achieve this?

The code is not written by me, and since I am a beginner, I don’t know what $current_post_slug represent, but as a non-expert, I suppose it represents the slug of the current deafult post (deafult post = post belonging to the default post type).