-
Notifications
You must be signed in to change notification settings - Fork 861
Remove woocommerce hooks in cleanup.php.. #1082
Comments
@colin-marshall Yes. But it is really one or the other. I prefer using the hooks, but if you want to go the woocommerce.php way in my opinion we should remove what is there in cleanup as it is not needed. If you want to go the woocommerce.php way I think that could just be changed around a bit to make the sidebar work as default and let the dev decide how they want to implement the sidebar or not. |
@JPOak thanks for clarifying. I personally would prefer to keep |
@colin-marshall Ok. No worries. I still am not sure why there is the woocommerce reference in the cleanup, but as long as I know it is there I can remove as needed. I'll close this. |
@JPOak sorry for not being clearer in my response. I am in favor of removing the unnecessary WooCommerce hooks in |
@colin-marshall ok. will send pull request. |
@JPOak thanks for the PR! So we can also remove the |
@colin-marshall - yeah. I'll do a pr for that as well. What did you think of the refactored woocommerce.php here #1057 . |
With the way Woocommerce is currently used in the FoundationPress (woocommerce.php in the root), I don't think the hooks are needed in the cleanup.php .
I think it creates confusion when someone decides to use the more flexible hook method to integrate woocommerce it creates an error being there. In fact, technically with the way you currently have woo implemented you dont need to declare add_theme_support( 'woocommerce' ); .
Thoughts on removing this?
The text was updated successfully, but these errors were encountered: