View Product Page

Actions

init.php

Copied!
Copy

hook on init the plugin


templates/shortcodes/ywpar-customers-points.php

Copied!
Copy

hook before best users tabs


Copied!
Copy

hook after best users tabs


includes/class-yith-wc-points-rewards-shortcodes.php

Copied!
Copy

hook before the checkout thresholds message


Copied!
Copy

hook after the checkout thresholds message


includes/class-yith-wc-points-rewards-referral.php

Copied!
Copy

action description

 Params  int $order_id the ID of the order.  string $action the kind of action.  YITH_WC_Points_Rewards_Customer $customer_referral the referral user object. 

includes/class-yith-wc-points-rewards-redeeming.php

Copied!
Copy

action triggered before return calculate price worth

 Params  

Copied!
Copy

hook before apply discount calculation


includes/class-yith-wc-points-rewards-post-types.php

Copied!
Copy

hook before custom post type registration


Copied!
Copy

hook after custom post type registration


includes/class-yith-wc-points-rewards-orders.php

Copied!
Copy

Hook on points added to the order

 Params  WC_Order $order the order. 

Copied!
Copy

action triggered before remove point to customer in a refund

 Params  int $total_points_to_refund the points to refund.  WC_Order $order the order. 

includes/class-yith-wc-points-rewards-frontend.php

Copied!
Copy

hook before the rewards message


Copied!
Copy


Copied!
Copy

hook before the rewards message


Copied!
Copy

hook after the rewards message


includes/class-yith-wc-points-rewards-extra-points.php

Copied!
Copy

hooks after login points given

 Params  YITH_WC_Points_Rewards_Customer $customer customer object 

includes/class-yith-wc-points-rewards-expiration-points.php

Copied!
Copy

hook on the expired points email

 Params  array $args list of arguments. 

includes/class-yith-wc-points-rewards-email.php

Copied!
Copy

hook on the update points email

 Params  array $args user email and email content. 

includes/class-yith-wc-points-rewards-earning.php

Copied!
Copy

Hook on saved points earned from cart

 Params  WC_Order $order the order. 

Copied!
Copy

Hook on points added to the order

 Params  WC_Order $order the order. 

includes/class-yith-wc-points-rewards-customer.php

Copied!
Copy

hook on banning a user

 Params  YITH_WC_Points_Rewards_Customer $user the user. 

Copied!
Copy

hook on customer updated points

 Params  int $customer_id customer id.  int $points_amount the points updated.  string $action type of the action.  array $arguments list of arguments. 

Copied!
Copy

Points earned


Copied!
Copy

hook on updated level

 Params  int $new_customer_level the new level.  int $customer_level actual level.  YITH_WC_Points_Rewards_Customer $this customer object.