How to affect front page by plugin
If your intent is to remove that function/action only on the front page (not clear from your question), then this code if (is_front_page) { remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_price’); } This code needs to be outside of the ‘admin’ code area of the plugin. See this link for documentation on is_front_page() https://codex.wordpress.org/Function_Reference/is_front_page If that is not your … Read more