View Product Page

Actions

init.php

Copied!
Copy

Allows to fire an action when the plugin is loaded


includes/class.yith-role-based-prices-product.php

Copied!
Copy

Allows to fire an action before the getting the product prices

Params
 WC_Product $product The current product.

Copied!
Copy

Allows to fire an action after the getting the product prices

Params
 WC_Product $product The current product.

Copied!
Copy

Allows to fire an action before the getting the product prices

Params
 WC_Product $product The current product.

Copied!
Copy

Allows to fire an action after the getting the product prices

Params
 WC_Product $product The current product.

Copied!
Copy

Allows to fire an action before the getting the product prices

Params
 WC_Product $product The current product.

Copied!
Copy

Allows to fire an action after the getting the product prices

Params
 WC_Product $product The current product.

includes/class-yith-wcrbp-price-rule-helper.php

Copied!
Copy

Allows to fire an action before starting the price calculation

Params
 WC_Product $product The current product in the calculation.

Copied!
Copy

Allows to fire an action after the price calculation

Params
 WC_Product $product The current product in the calculation.

includes/data-stores/class-yith-wcrbp-price-rule-data-store.php

Copied!
Copy

Allows to fire an action after a price rule is created

Params
 string $price_rule_id The new price rule ID.
 YITH_WCRBP_Price_Rule $data The created price rule.

Copied!
Copy

Allows to fire an action when a price rule is retrieved

Params
 int $price_rule_id The ID of the price rule being read.

Copied!
Copy

Allows to fire an action when a price rule is updated

Params
 int $id The ID of the updated price rule.
 YITH_WCRBP_Price_Rule $data The updated price rule.

Copied!
Copy

Allows to fire an action before a price rule is removed

Params
 int $id The ID of the price rule to be deleted.

Copied!
Copy

Allows to fire an action after a price rule is removed

Params
 int $id The ID of the deleted price rule.