Woocommerce My Account Endpoint – how to get ID parameter from URL?

I hope it’s not too late, but anyway, I know it will help someone else.

echo get_query_var('your-endpoint');

So, for your code, it will be:

echo get_query_var('view-subscription');

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)