Automatically Delete Woocommerce Images After Deleting a Product

// Automatically Delete Woocommerce Images After Deleting a Product add_action( ‘before_delete_post’, ‘delete_product_images’, 10, 1 ); function delete_product_images( $post_id ) { $product = wc_get_product( $post_id ); if ( !$product ) { return; } $featured_image_id = $product->get_image_id(); $image_galleries_id = $product->get_gallery_image_ids(); if( !empty(…Continue reading

Move WooCommerce Category Description Below Products

add_action( ‘init’, function() { // Disable subheading on product cats add_filter( ‘totaltheme/page/header/has_subheading’, function( $check ) { if ( is_tax( ‘product_cat’ ) ) { $check = false; } return $check; } ); // Display description below loop add_action( ‘wpex_hook_content_bottom’, function( $bool…Continue reading