templates/shortcodes/ywpar-customers-points.php
Show or not a specific user in .ywpar_customer_points shortcode
Paramsbool $show
YITH_WC_Points_Rewards_Customer $customer.
templates/myaccount/ywpar-banner-get-points-profile.php
filter the complete profile endpoint url
Params
string $edit_account by default the edit account endpoint url.
templates/myaccount/my-points-view.php
worth value of the customer points
Params
float $worth_value .
Params
string $title .
filter the target banners
Params
array $target_banners .
filter the get-points banners
Params
array $get_points_banners .
filter the value of point for an item in the history
Params
int $item_amount .
templates/emails/latest-updates.php
points amount value
Params
string $amount .
includes/functions-yith-wc-points-rewards.php
filter the capability - defaul manage_options
filter the roles enabeld to earn points
Params
array $roles
filter the roles enabeld to redeem points
Params
array $roles
filter the order statuses to earn points to show in the backend related option
Params
array $statuses
filter the date placeholder for birthday option
Params
array $dates
filter the date patterns for birtday option - to use with ywpar_date_placeholders filter
Params
filter if to hide messages to the gustes
enable or not the earning on Sale products
filter if current product is on sale or not
Paramsbool $is_sale
WC_Product $product
Params
array wc get orders args
filter the blog suffix
Filter the query for getting ordes during user total orders amount
Paramsstring $user_id the user id
string $starter_date date in format YYYY-MM-DD
Returnarray
Paramsfloat $last_order_subtotal last order subtotal
WC_Order $last_order woocommerce order
Paramsstring $display_price price to display.
string $action default 'earn'.
string $currency currency.
int $qty quantity.
string $price product price.
WC_Product $product product object
filter the points order note message
Paramsstring $message
WC_Order $order
int $points_earned
int $points_redeemed
includes/class-yith-wc-points-rewards.php
if the plugin can load
includes/class-yith-wc-points-rewards-share-points.php
filter the max usable points to share coupon
Paramsint $points_usable
int $points_amount
filter the Share coupon code
filter the expiration date for Shared coupon
filter the create Share coupon args
Paramsarray $args
int $points
YITH_WC_Points_Rewards_Customer $customer.
includes/class-yith-wc-points-rewards-redeeming.php
filter the formatted price worth
Paramsstring $formatted_price_worth .
int $product_id .
int|float $price_worth .
int $points_earned .
filter the conversion method
filter the rule validation
Paramsbool $validate .
YITH_WC_Points_Rewards_Customer $customer .
array $conversion .
string $currency .
filter the conversion rate
Params
array
filter the main conversion rate
Params
array $conversion
filter the main conversion rate for percentage option
Params
array $conversion
filter the customer usable points
Paramsint $total_points total usable points.
int $customer id
filter the max discount for fixed conversion type
filter the discount for percentage conversion type
Paramsint|float $discount .
array $conversion
int $general_max_percentage_discount
filter the max discount
Paramsint|float $max_discount
YITH_WC_Points_Rewards_Redeeming $_this
array $conversion
filter the max points
Paramsint $max_points
YITH_WC_Points_Rewards_Redeeming $_this
array $conversion
filter the cart item price
Paramsfloat|string $item_price
WC_Cart_Item $cart_item
int $product_id
filter cart subtotal
filter the max percentage discount
filter the max points
filter the coupon label
filter the dicount value
allow free shipping coupon/discount
set if exlude tax from calculation while creating the coupon
filter the coupon code
set if limit the shared coupons - default true
check coupon before remove
Paramsbool $check default true.
string $coupon code
array $applied_coupons coupons applied to the cart.
bool $ywpar_coupon_in_cart if in cart there's a redeem points coupon.
check coupons in cart message
Paramsstring $message
string $coupon code
filter the discount applied message
filter the cron time - default 'daily'
Params
filter auto apply points time interval - default value 60
Params
filter the max discount
includes/class-yith-wc-points-rewards-post-types.php
filter the register post type args
Params
array $args .
filter the register post type args
Params
array $args .
filter the register post type args
Params
array $args .
filter the register post type args
Params
array $args .
includes/class-yith-wc-points-rewards-points-log.php
best users query limit (default: 3)
Params
int $num_of_customers number of customers
best users calculation type (default: positive)
Paramsstring $type positive or negative
string $time time of the query (all_time, today, last_month, this_week)
includes/class-yith-wc-points-rewards-orders.php
filter the order status to remove earned points
Params
array $status default is array of cancelled and failed.
filter the order status to assign earned points
Params
array $status default is array of completed and processing.
filter the order status to remove redeemed points
Params
array $status default is array of cancelled and failed.
filter the order status to assign redeemed points
Params
array $status default is array of pending, on-hold, completed and processing.
filter how many posts per page to use in the query
Params
int $value default 20.
filter if the order is validated
Paramsbool $is_valid .
WC_Order $order .
filter the points value
Paramsint $points .
int|float $points_from_price .
int|float $points_from_product .
int $product_id .
bool $integer .
WC_Order_Item_Product $order_item .
filter if deduce the order points
Paramsbool $is_deduce .
int $order_id .
filter the statuses to which apply the operation
Params
array $statuses default wc-processing and wc-completed.
includes/class-yith-wc-points-rewards-import-export.php
Import csv file path
Params
string $path .
filter the import description label
set if register the log of the operation or not - default 1
filter the user meta used to export
Paramsstring $meta default '_ywpar_user_total_points'.
string $format default 'id'.
filter the first row
Paramsarray $first_row .
string $format default 'id'.
filter the row
includes/class-yith-wc-points-rewards-helper.php
filter the get levels query
Paramsarray $args .
string $status .
filter the get banners query
Params
array $args .
includes/class-yith-wc-points-rewards-frontend.php
filtering the action where show the message in single product page
Paramsstring $action
string $position
int $priority
filtering the priority where show the message in single product page
Paramsint $priority
string $position
string $action
filter the position where show the message in the loop
Params
string $position default is woocommerce_after_shop_loop_item_title
filter the priority where show the message in the loop
Params
int $priority default 11
the classes of messages in cart/checkout
Paramsarray $classes list of the classes.
string $message_type the type of message.
the cart messages in cart/checkout
Paramsstring $message the message.
int $total_points total points.
int $discount the discount value.
the classes of messages in cart/checkout
Paramsarray $classes list of the classes.
string $message_type the type of message.
filter the max points in rewards message
Params
int $max_points .
filter the message format for fixed conversion
Params
string $format
filter the message format for percentage conversion
Params
string $format
filter the max points in rewards message
Params
int $max_points .
filter the max discount message in redeem message
Paramsstring $message .
string $type .
change the error message that appears on trying to use less points than the ones needed as minimum.
includes/class-yith-wc-points-rewards-extra-points.php
filter the required account fields
Params
array $required_fields
Returnbool
Params
bool
filter to prevent or not the extra points action
Paramsbool $value the actual value - default false.
array $types Type of extra points.
int $customer_id the customer id.
int $order_id the order id.
Manage order total for extra points on checkout threshold
Paramsfloat $total order total.
WC_Order $order the order.
includes/class-yith-wc-points-rewards-extra-points-birthdate.php
Params
string $label
set the birtday field to be required
Params
string $required
includes/class-yith-wc-points-rewards-expiration-points.php
filter description
Paramsbool $send .
string $billing_email customer billing email.
YITH_WC_Points_Rewards_Customer $customer customer object.
includes/class-yith-wc-points-rewards-email.php
filter the user points in the email content
Params
int $total_points
filter the email css
Params
string $css
includes/class-yith-wc-points-rewards-earning.php
disable earning if there's a coupon
Paramsint $total_product_points
array $cart_item
string $cart_item_key
YITH_WC_Points_Rewards_Earning $this
filter the points calculated on the cart
Params
int $tot_points
force to recalculate the points from the order items
Paramsbool $to_force
int $points the points to add
WC_Order $order the order
change the points value for the order
Paramsint $tot_points the points to gain.
WC_Order $order the order.
Manage the price before to apply conversion
Paramsfloat $price price.
string $currency currency.
integer $integer precision of points.
YITH_WC_Points_Rewards_Earning $this YITH_WC_Points_Rewards_Earning object
Params
int $points_cached empty array to not use cache
Params
bool $value true by default.
filter the points calculated for a product
Paramsint $calculated_points points for the product.
WC_Product $product the product.
edit the conversion rate
Params
array $conversion
Change from order item subtotal to total
Paramsstring $price item price
WC_Order $order Order
WC_Order_Item_Product $order_item order item
YITH_WC_Points_Rewards_Customer $customer customer object
includes/class-yith-wc-points-rewards-customer.php
This filter allows adding, removing or changing the order status that the order must have to retrieve the products available for a review
Params
array $order_status List of order status.
Returnarray
filter description
Paramsarray $products list of the products to review.
int $user_id the id of the user.
filter the customer name
Paramsstring $name the user name.
int $id the user id.
YITH_WC_Points_Rewards_Customer $customer the customer object
user can share points
Paramsbool $is_enabled
YITH_WC_Points_Rewards_Customer $customer the customer
Flush cache
filter if user is banned
Paramsbool $is_banned if is banned
YITH_WC_Points_Rewards_Customer $customer the customer.
filter if user is enabled to get points or redeem
Paramsbool $is_enabled if is enabled
string $action earn or redeem.
YITH_WC_Points_Rewards_Customer $customer the customer.
Paramsarray $customer_banners list of the banners
string $type Type of banner.
YITH_WC_Points_Rewards_Customer $customer the customer.
includes/class-yith-wc-points-rewards-assets.php
Params
array $deps
hide messages
load my account script
use ajax to redeem
change container class to hook the reward message
Paramsstring $class default .woocommerce-form-coupon
includes/class-yith-wc-points-rewards-ajax.php
filter the banner creation url
Params
string $url the url
filter the earning rule creation url
Params
string $url the url
filter the redeeming rule creation url
Params
string $url the url
filter the duplication rule url
Params
string $url the url
includes/class-yith-wc-points-rewards-admin.php
filter the option panel tab
Params
array $admin_tabs admin tabs.
filter the arguments to create admin panel
Params
array $panel_options the array of the args to create the admin panel.
change the number of items to show
Params
int $number
change the number of items to show
Params
int $num
includes/blocks/class-yith-wc-points-rewards-blocks.php
Params
boolean true default value
includes/admin/class-yith-wc-points-rewards-customers-list-table.php
Params
array $args arguments for user query.
includes/admin/class-yith-wc-points-rewards-customer-history-list-table.php
filter the max number of customer's history items
Params
integer $number of rows.
Show or not the calculations aside the points value for each customer history items
Params
bool $true