21 lines
546 B
PHP
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');
|
|
}
|
|
}
|