How to remove SKU’s from ALL products in Quick View – already remove from each product page

Please give this a try. I’ve modified your existing code to check whether it’s a product or not. Let me know if it works. function sv_remove_product_page_skus( $enabled ) { global $post; if ( ! is_admin() && get_post_type( $post->ID ) == ‘product’ ) { return false; } return $enabled; } add_filter( ‘wc_product_sku_enabled’, ‘sv_remove_product_page_skus’ );

What different ways can a plugin add a filter to a WordPress site?

I’ve grepped through the plugin’s entire codebase for “<plugin_name>-output-block” and nothing. (Revised answer) Actually, you could just deactivate all other plugins and/or switch to a default (and unmodified) theme like the Twenty Twenty theme to see whether the issue is caused by another plugin or the active theme. But even so, I hope the following … Read more

Header image automatically changes depending on season

Change filter call add_filter(‘masthead’,’seasonal_site_header’, 10, 2); function seasonal_site_header ($classes=””) { $hemisphere=”northern”; $m = date(‘m’); $northern=array( ‘summer’ => array(6, 7, 8), ‘fall’ => array(9, 10, 11), ‘winter’ => array(12, 1, 2), ‘spring’ => array(3, 4, 5) ); foreach($$hemisphere as $key=>$val) { if(in_array($m, $val)) { $classes[] = $key; return $classes; } } return $classes; } Change css … Read more