I want to remove the “Browse Products” button on the subscription page of My account area.
I found the output in the template file my-subscriptions.php
.
But there is no filter to remove it without editing the template file.
Is there any other way to do that?
Maybe there is a way to change the link of the button (to a specific product) and the text?
This is the code for the link:
<a class="woocommerce-Button button" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>">
<?php esc_html_e( 'Browse products', 'woocommerce-subscriptions' ); ?>
</a>
2
Answers
Try this code snippet
If you want to change the text without overriding the template, try this
From here
For changing the link, please use below code.
You can hide with css:
Anyway hide with css just hide all message box, so no idea if this will be useful for you or somebody.