Snippets: Move WooCommerce Product Entry Title before Image

By default in WooCommerce the product entry title displays after the image. You can use this snippet to move it above the image instead.

// Move product entry title before image
add_action( 'init', function() {
	remove_action( 'woocommerce_shop_loop_item_title', 'woocommerce_template_loop_product_title', 10 );
	add_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_title', -1 );
}, PHP_INT_MAX );
All PHP snippets should be added via a child theme's functions.php file.