shop changes
This commit is contained in:
20
actions/WooCommerceCleanup.php
Normal file
20
actions/WooCommerceCleanup.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user