Replace template by plugin
-
The instruction to replace the template like
cart.php
is to create a duplicate in the theme directory like/wp-content/themes/yourtheme/woocommerce/cart/cart.php
.But my question is, can I make it in a plugin instead of a theme like:
/wp-content/plugins/yourplugin/woocommerce/cart/cart.php
Will this work? If yes, is it a good practice or it’s not recommended?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Replace template by plugin’ is closed to new replies.