Points and Rewards Developer Docs

“Points and Rewards Developer Docs” by “WPWeb”

Action Reference

woo_pr_product_metabox_fields_after

This action runs after displaying metabox settings at the product level in admin side, This action includes one parameter
$product - Get a product object.


Filter Reference

woo_pr_get_events

This filter allows you to add custom point's event type. The filter includes two parameters,
$value - Get a event value,
$event - Get a event name.

woo_pr_owner_product_message

This filter allows you to change the message of owner product. The filter includes one parameter,
$message - Get the owner product message with html tags.

woo_pr_product_add_to_cart_description

This filter allows you to change the description of product add to cart button. The filter includes one parameter,
$class_object - Get the product type class object.

woocommerce_get_settings_woopr_settings

This filter allows you to add custom settings in points & rewards tab. The filter includes two parameters,
$settings - Get a settings array,
$current_section - Get a current section .

woo_pr_product_quantity_input_min

This filter allows you to change the minimum quantity value for points product. The filter includes two parameters,
$min_quantity - Get the minimum quantity value of product,
$product - Get a product object.

woo_pr_product_quantity_input_max

This filter allows you to change the maximum quantity value for points product. The filter includes two parameters,
$max_quantity - Get the maximum quantity value of product,
$product - Get a product object.