Get current WooCommerce endpoint not working

to use WC()->query->get_current_endpoint() you have to declare your new endpoints to Woocommerce with that :

add_filter("woocommerce_get_query_vars", function ($vars) {

    foreach (["properties", "inbox", "help", "submit-ticket"] as $e) {
        $vars[$e] = $e;
    }

    return $vars;

});