Get name CPT with slug taxonomy

how can I get the name of the CPT having the slug of a Taxonomy?
example:

$name_cpt = get_post_type_object( $slug_taxonomy );

but this returns

null

Read more here:: Get name CPT with slug taxonomy

Leave a Reply

Your email address will not be published. Required fields are marked *