Files
mccans-theme/actions/WooCommerceCleanup.php
2025-06-25 16:04:19 -07:00

21 lines
546 B
PHP

<?php
namespace Actions;
use ofc\RadAction;
class WooCommerceCleanup extends RadAction
{
protected string $hookName = "init";
protected int $priority = 5;
public function callback()
{
remove_all_actions('woocommerce_before_shop_loop_item');
remove_all_actions('woocommerce_before_shop_loop_item_title');
remove_all_actions('woocommerce_shop_loop_item_title');
remove_all_actions('woocommerce_after_shop_loop_item_title');
remove_all_actions('woocommerce_after_shop_loop_item');
}
}