您可以通过删除并重新添加要更改位置的零件来更改优先级/顺序-如下所示:
remove_action( \'woocommerce_after_shop_loop_item\', \'woocommerce_template_loop_add_to_cart\', 10 );
add_action( \'woocommerce_after_shop_loop_item_title\', \'woocommerce_template_loop_add_to_cart\', 10 );
Drop this piece of code into your functions.php to take effect.