Loyalty Points Rewards and Referral for WooCommerce 1.4.9 has 52 actions and 258 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Loyalty Points Rewards and Referral for WooCommerce fires an action
add_action( 'wlr_customer_points_balance_changed', function( $user_email, $points, $transaction_type, $action_type, $hook_data, $point_balance ) {
// Your code runs here.
}, 10, 6 );
// Change a value Loyalty Points Rewards and Referral for WooCommerce is about to use
add_filter( 'active_plugins', function( $option ) {
// Change $option here.
return $option;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Unified hook that fires whenever customer points balance changes */ do_action( 'wlr_customer_points_balance_changed', $user_email, $points, $transaction_type, $action_type, $hook_data, $point_balance ); -
apply_filters( 'active_plugins', get_option( 'active_plugins', array() ) ); -
apply_filters( "{$this->id}_short_codes_list", [ '{wlr_reward_title}' => '10$ discount', '{wlr_points_label}' => 'points', '{wlr_reward_label}' => 'rewards', '{wlr_reward_display_name}' => 'reward', '{wlr_campaign_name}' => 'Earn 10 points', '{wlr_action_name}' => 'Reward based on spending', '{wlr_earn_point}' => 0, '{wlr_earn_reward}' => 'WLR-YTE-F4D', '{wlr_earn_point_or_reward}' => '10 points', '{wlr_shop_url}' => 'https://example.com', ... ); -
apply_filters( 'wlr_before_display_store_name', get_option( 'blogname' ) ); -
apply_filters( 'wlr_before_send_email', true, [ 'email_type' => $this->id, 'reward' => $point_or_reward, 'action_type' => $action_type, 'data' => $data, 'campaign' => $campaign, 'type' => $type ] ); -
apply_filters( 'wlr_product_price', $item_price, null, false, '' ); -
do_action( 'woocommerce_email_header', $email_heading, $email ); -
apply_filters( 'title_save_pre', sanitize_text_field( wp_unslash( $_REQUEST['name'] ) ) ); -
do_action( 'wlr_before_customer_reward_page_my_points_content' ); -
apply_filters( 'wlr_expire_mail_date_format', $expire_date_format ); -
apply_filters( 'wlr_points_rewards_earn_points_message', $message, $short_code_list ); -
apply_filters( 'wlr_process_order_earn_allowed_condition', $allowed_condition ); -
apply_filters( 'wlr_single_product_message', $message, $this ); -
do_action( 'wlr_after_current_level_name', $user->level_data ); -
do_action( 'wlr_after_customer_reward_cart_page_content' ); -
do_action( 'wlr_after_customer_reward_page_content' ); -
do_action( 'wlr_after_next_level_name', $user->level_data ); -
apply_filters( 'wlr_allow_my_account_edit_birth_date', $wlrf_show_edit_birthday, $wlrf_user_can_edit_birthdate, isset( $user ) && ! empty( $user ) ? $user : new \stdClass() ); -
apply_filters( 'wlr_alter_campaign_selected_data', $active_campaigns ); -
apply_filters( 'wlr_before_add_earn_point', $point, $action_type, $action_data ); -
apply_filters( 'wlr_before_add_earn_reward', $reward, $action_type, $action_data ); -
apply_filters( 'wlr_before_add_to_loyalty_customer', true, $user_id, $user_email ); -
do_action( 'wlr_before_customer_reward_cart_page_content' ); -
do_action( 'wlr_before_customer_reward_cart_page_user_rewards_content' ); -
do_action( 'wlr_before_customer_reward_page_content' ); -
wlr_before_customer_reward_page_notification_preference_content
action Copy link Customise this hookdo_action( 'wlr_before_customer_reward_page_notification_preference_content' ); -
do_action( 'wlr_before_customer_reward_page_referral_url_content' ); -
do_action( 'wlr_before_customer_reward_page_reward_opportunity_content' ); -
do_action( 'wlr_before_customer_reward_page_transactions_content' ); -
do_action( 'wlr_before_customer_reward_page_user_rewards_content' ); -
do_action( 'wlr_before_customer_reward_page_ways_to_earn_content' ); -
apply_filters( 'wlr_check_point_for_purchase_data', $can_earn_point, $rule, $data, $point_rule ); -
apply_filters( 'wlr_coupons_tab_content', $page_content, $page_params ); -
do_action( 'wlr_create_required_table' ); -
apply_filters( 'wlr_custom_price_convert', $amount, $original_amount, $with_symbol, $currency ); -
apply_filters( 'wlr_customer_page_new_coupons_section', $page_content, $page_params ); -
apply_filters( 'wlr_customer_page_new_my_rewards_section', $my_rewards_and_coupons, $page_params ); -
apply_filters( 'wlr_dashboard_point_reward_action_type', [ 'redeem_point' ] ); -
apply_filters( 'wlr_earn_point_email_short_codes', $this->placeholders, $email, $point, $action_type, $data ); -
apply_filters( 'wlr_get_point_label', $point_label, $point ); -
apply_filters( 'wlr_is_pro', false ); -
apply_filters( 'wlr_my_account_birthday_date_format', array( "format" => array( "d", "m", "Y" ), "separator" => "-" ) ); -
apply_filters( 'wlr_my_account_reward_desc', $wlrf_item->description, $wlrf_item ); -
apply_filters( 'wlr_myaccount_page_data', $page_params ); -
apply_filters( 'wlr_notify_before_add_earn_point', $point, $action_type, $action_data ); -
apply_filters( 'wlr_notify_before_add_earn_reward', $reward, $action_type, $action_data ); -
apply_filters( 'wlr_page_allowed_conditions', [ 'user_role', 'customer', 'user_point', 'currency', 'language' ] ); -
apply_filters( 'wlr_page_transaction_details', $page_content, $transaction_params ); -
apply_filters( 'wlr_page_transaction_details_additional_conditions', array(), $email ); -
apply_filters( 'wlr_point_redeem_points_message', $message ); -
apply_filters( 'wlr_translate_display_date', false ); -
apply_filters( 'translate_object_id', $prod_id, 'product', false, $current_lang ); -
do_action( 'wlpe_after_save_settings', $data, $key ); -
apply_filters( 'wlpe_extra_content', ( isset( $extra ) ? $extra : null ) ); -
do_action( 'wlpe_manage_pages', $view ); -
apply_filters( 'wlpe_manage_pages_data', $main_page_params ); -
apply_filters( 'wlpr_before_credit_insert', $credit_fields ); -
apply_filters( 'wlpr_before_starting_credit_insert', $credit_fields ); -
apply_filters( 'wlr_achievement_names', $achievement_names, $achievement_key ); -
apply_filters( 'wlr_action_conditions', [ 'point_for_purchase' => [ 'Common' => [ 'label' => __( 'Common', 'wp-loyalty-rules' ), 'options' => [ 'user_role' => __( 'User Role', 'wp-loyalty-rules' ), 'user_point' => __( 'Customer Points', 'wp-loyalty-rules' ), 'customer' => __( 'WPLoyalty Customer', 'wp-loyalty-rules' ), 'language' => __( 'language', 'wp-loyalty-rules' ), 'currency' => __( 'Currency', 'wp-loyalty-rules' ), ] ], 'Cart' ... ); -
apply_filters( 'wlr_action_types', $action_types ); -
apply_filters( 'wlr_addon_list', array_merge( self::getInternalAddonsList(), self::getRemoteAddonsList() ) ); -
do_action( 'wlr_after_add_earn_point', $action_data['user_email'], $point, $action_type, $action_data ); -
apply_filters( 'wlr_after_add_earn_point_transaction', $earn_trans_id, $args ); -
do_action( 'wlr_after_add_earn_reward', $action_data['user_email'], $reward, $action_type, $action_data ); -
do_action( 'wlr_after_add_extra_earn_point', $action_data['user_email'], $point, $action_type, $action_data ); -
apply_filters( 'wlr_after_add_extra_earn_point_transaction', $earn_trans_id, $args ); -
do_action( 'wlr_after_add_extra_earn_reward', $action_data['user_email'], $reward, $action_type, $action_data ); -
apply_filters( 'wlr_after_add_extra_earn_reward_transaction', $earn_trans_id, $args ); -
do_action( 'wlr_after_apply_cart_coupon', $discount_code ); -
do_action( 'wlr_after_coupon_code_generation', $coupon_code, $user_reward ); -
do_action( 'wlr_after_customer_reward_page_available_points_content' ); -
apply_filters( 'wlr_after_get_available_rewards', array_merge( $point_rewards, $earned_coupon_reward ), $user_email ); -
do_action( 'wlr_after_init' ); -
apply_filters( 'wlr_after_level_update', $current_level_id, $point, $user_fields ); -
apply_filters( 'wlr_after_save_extra_transaction', $insert_id, $args ); -
do_action( 'wlr_after_save_settings', $data, $option_key ); -
do_action( 'wlr_after_trigger_checkout_earn_message' ); -
do_action( 'wlr_after_trigger_checkout_redeem_message' ); -
apply_filters( 'wlr_after_update_customer_point', $data, $action_data ); -
do_action( 'wlr_after_user_level_changed', $old_level_id, $user_fields ); -
apply_filters( 'wlr_after_user_updated', $status, $user_fields ); -
apply_filters( 'wlr_all_action_types', [ 'point_for_purchase' => is_admin() ? __( 'Points For Purchase', 'wp-loyalty-rules' ) : sprintf( __( '%s For Purchase', 'wp-loyalty-rules' ), Settings::getPointLabel( 3 ) ), 'subtotal' => __( 'Reward based on spending', 'wp-loyalty-rules' ), 'purchase_histories' => __( 'Order Goals', 'wp-loyalty-rules' ), 'referral' => __( 'Referral', 'wp-loyalty-rules' ), 'signup' => __( 'Sign Up', 'wp-loyalt... ); -
apply_filters( 'wlr_all_campaign_condition_list', [ 'user_role' => __( 'User Role', 'wp-loyalty-rules' ), 'user_point' => __( 'Customer Points', 'wp-loyalty-rules' ), 'customer' => __( 'Customer', 'wp-loyalty-rules' ), 'language' => __( 'language', 'wp-loyalty-rules' ), 'currency' => __( 'Currency', 'wp-loyalty-rules' ), 'cart_subtotal' => __( 'Cart Subtotal', 'wp-loyalty-rules' ), 'cart_line_items_count' => __( 'Line Item Count', 'wp-loyalty-... ); -
apply_filters( 'wlr_allowed_calculate_based', array( 'cart', 'order', 'product' ) ); -
apply_filters( 'wlr_allowed_email_ids', [ 'wlr_earn_point_email', 'wlr_birthday_email', 'wlr_earn_reward_email', 'wlr_expire_email', 'wlr_new_level_email', 'wlr_point_expire_email', ] ); -
apply_filters( 'wlr_allowed_redeem_point_display_position', ['before', 'after'] ); -
apply_filters( 'wlr_app_init_class', $wlrf_apps_class ); -
apply_filters( 'wlr_apply_condition_to_child', false, $products ); -
apply_filters( 'wlr_apply_condition_to_variants', true ); -
apply_filters( 'wlr_apply_reward_validation', true, $reward, $user_email ); -
apply_filters( 'wlr_apply_show_more_show_less_option', true, $message_description ); -
apply_filters( 'wlr_available_conditions', $available_conditions ); -
apply_filters( 'wlr_before_campaign_bulk_action', [], $action_mode, $selected_list ); -
apply_filters( 'wlr_before_cart_line_item_condition', $cart_items, $options, $data ); -
apply_filters( 'wlr_before_create_coupon_data', $data, $user_reward ); -
apply_filters( 'wlr_before_delete_campaign', [], $id ); -
apply_filters( 'wlr_before_delete_reward', [], $reward ); -
apply_filters( 'wlr_before_display_messages', true ); -
apply_filters( 'wlr_before_earn_point_calculation', $status, $data ); -
apply_filters( 'wlr_before_earn_point_conditions', $status, $data ); -
apply_filters( 'wlr_before_earn_point_log_data', $log_data, $action_type, $action_data ); -
apply_filters( 'wlr_before_earn_reward_calculation', $status, $data ); -
apply_filters( 'wlr_before_earn_reward_conditions', $status, $data ); -
apply_filters( 'wlr_before_earn_reward_log_data', $log_data, $action_type, $action_data, $reward ); -
apply_filters( 'wlr_before_extra_point_data', $action_data, $point, $action_type ); -
do_action( 'wlr_before_init' ); -
apply_filters( 'wlr_before_load_localize', [ 'point_popup_message' => sprintf( __( 'How much %s you would like to use', 'wp-loyalty-rules' ), $base_helper->getPointLabel( 3 ) ), 'popup_ok' => __( 'Ok', 'wp-loyalty-rules' ), 'popup_cancel' => __( 'Cancel', 'wp-loyalty-rules' ), 'revoke_coupon_message' => sprintf( __( 'Are you sure you want to return the %s ?', 'wp-loyalty-rules' ), $earn_campaign_helper->getRewardLabel() ), 'wlr_redeem_n... ); -
apply_filters( 'wlr_before_loyalty_assets', true ); -
apply_filters( 'wlr_before_order_line_item_condition', $order_items, $options, $data ); -
apply_filters( 'wlr_before_process_order_earning', true, $order_id ); -
apply_filters( 'wlr_before_processing_cart_subtotal_for_point_conversion_data', $cart_amount, $user, $user_reward_data ); -
apply_filters( 'wlr_before_render_reward_page', true ); -
apply_filters( 'wlr_before_reward_bulk_action', [], $action_mode, $selected_list ); -
apply_filters( 'wlr_before_rule_data_process', $action_data, $campaign_list ); -
apply_filters( 'wlr_before_save_campaign_validation', [] ); -
apply_filters( 'wlr_before_save_extra_transaction', $args ); -
apply_filters( 'wlr_before_save_reward_validation', [] ); -
apply_filters( 'wlr_before_save_settings', $data, $option_key ); -
apply_filters( 'wlr_before_toggle_campaign_active', [], $campaign ); -
apply_filters( 'wlr_before_toggle_reward_active', [], $reward ); -
do_action( 'wlr_before_trigger_cart_earn_message' ); -
do_action( 'wlr_before_trigger_cart_redeem_message' ); -
do_action( 'wlr_before_trigger_checkout_earn_message' ); -
do_action( 'wlr_before_trigger_checkout_redeem_message' ); -
do_action( 'wlr_before_trigger_product_display_message' ); -
do_action( 'wlr_before_trigger_thankyou_message' ); -
apply_filters( 'wlr_before_update_customer_point', $action_data ); -
apply_filters( 'wlr_block_checkout_script_data', [ 'earn_display_position' => ! empty( $settings['wlr_cart_earn_point_display'] ) ? $settings['wlr_cart_earn_point_display'] : 'before', 'redeem_display_position' => ! empty( $settings['wlr_cart_redeem_point_display'] ) ? $settings['wlr_cart_redeem_point_display'] : 'before', ] ); -
do_action( 'wlr_block_init' ); -
apply_filters( 'wlr_can_show_reward_page', $status, $page_type ); -
apply_filters( 'wlr_cart_action_list', $cart_action_list ); -
apply_filters( 'wlr_cart_earn_message_after_design', $design_message ); -
apply_filters( 'wlr_cart_product_price', $product_price, $cart_key, $cart_item, $action_data ); -
apply_filters( 'wlr_change_free_product_quantity', 1, $free_pro, $user_reward ); -
apply_filters( 'wlr_check_item_for_additional_restriction', $status, $item, $is_calculate_base ); -
apply_filters( 'wlr_check_normal_product_available', true, $is_valid, $coupon, $discount, $user_reward ); -
apply_filters( 'wlr_check_sku_filter', $product_sku, $product, $operation_values, $cart_item, $sale_badge ); -
apply_filters( 'wlr_condition_class_loading', [] ); -
apply_filters( 'wlr_convert_cart_subtotal', $options->value ); -
apply_filters( 'wlr_convert_to_default_currency', $discount_amount, $condition_data['currency'] ); -
apply_filters( 'wlr_core_multicurrency_allowed', false ); -
apply_filters( 'wlr_coupons_tab_card_count', 5 ); -
do_action( 'wlr_create_coupon', $id, $data ); -
apply_filters( 'wlr_create_coupon_data', $data, $this ); -
apply_filters( 'wlr_csv_header_list', array( 'email', 'points', 'referral_code', 'comment' ) ); -
apply_filters( 'wlr_current_campaign_list', self::$current_campaign_list[ $current_date ] ); -
apply_filters( 'wlr_current_currency', $currency ); -
apply_filters( 'wlr_current_language', $lang ); -
apply_filters( 'wlr_current_reward_list', self::$current_reward_list ); -
apply_filters( 'wlr_custom_default_currency', $currency ); -
apply_filters( 'wlr_custom_display_currency', $currency ); -
apply_filters( 'wlr_customer_page_new_my_rewards_section_params', $page_params ); -
apply_filters( 'wlr_customer_page_new_rewards_section', $page_content, $page_params ); -
apply_filters( 'wlr_customer_reward_page_point_expire_data', $params ); -
apply_filters( 'wlr_customer_reward_page_templates', [ 'customer_page.php', 'cart_page.php', 'my_account_reward.php', 'cart_page_rewards.php' ] ); -
apply_filters( 'wlr_customer_transaction_before_display', $item ); -
apply_filters( 'wlr_customers_query_data', $query_data ); -
apply_filters( 'wlr_day_periods', [ 'day' => esc_html__( 'Day(s)', 'wp-loyalty-rules' ), 'week' => esc_html__( 'Week(s)', 'wp-loyalty-rules' ), 'month' => esc_html__( 'Month(s)', 'wp-loyalty-rules' ), 'year' => esc_html__( 'Year(s)', 'wp-loyalty-rules' ), ] ); -
apply_filters( 'wlr_default_product_price', $productPrice, $product, $item, $is_redeem, $orderCurrency ); -
apply_filters( 'wlr_delete_customer', $status, $condition ); -
apply_filters( "wlr_earn_{strtolower($type)}_{strtolower($action_type)}", $reward, $campaign, $data ); -
apply_filters( 'wlr_earn_birthday_email_short_codes', $this->placeholders, $email, $point_or_reward, $action_type, $data ); -
apply_filters( 'wlr_earn_message_after_design', $design_message, $message ); -
apply_filters( 'wlr_earn_point_customer_note', $this->processLogData( 'point', $action_type, $point, '', $action_data ), [ 'type' => 'point', 'action_type' => $action_type, 'campaign_id' => $campaign_id, 'point' => $point, 'action_data' => $action_data ] ); -
apply_filters( 'wlr_earn_point_or_reward_label', $with_label ); -
apply_filters( 'wlr_earn_reward_email_short_codes', $this->placeholders, $email, $reward, $action_type, $data ); -
apply_filters( 'wlr_exclude_product_category_ids_conditions', array( 'product_category' ), $available_conditions ); -
apply_filters( 'wlr_exclude_product_ids_conditions', array( 'products' ), $available_conditions ); -
apply_filters( 'wlr_exclude_sale_items_conditions', array( 'product_onsale' ), $available_conditions ); -
apply_filters( 'wlr_expire_coupon_email_short_codes', $this->placeholders, $user_reward ); -
apply_filters( 'wlr_expired_coupons_tab_card_count', 5 ); -
apply_filters( 'wlr_extra_action_list', $action_list ); -
apply_filters( 'wlr_extra_point_ledger_action_list', array( 'new_user_add', 'admin_change', 'import' ) ); -
apply_filters( 'wlr_flush_rewrite_rules', true ); -
apply_filters( 'wlr_free_product_cart_item_data', array( 'loyalty_free_product' => 'yes', 'loyalty_product_id' => $free_product['product_id'], 'loyalty_user_reward_ids' => array( $reward->id ), 'loyalty_user_reward_id' => $reward->id, 'loyalty_qty' => isset( $free_product['qty'] ) && ! empty( $free_product['qty'] ) ? $free_product['qty'] : 1, 'loyalty_variants' => isset( $free_product['product_variants'] ) && ! empty( $free_product['product_va... ); -
apply_filters( 'wlr_free_product_display_name', $display ); -
apply_filters( 'wlr_free_product_key', $key ); -
apply_filters( 'wlr_free_product_price', 0, $item ); -
apply_filters( 'wlr_front_css_handler', [ WLR_PLUGIN_SLUG . '-alertify-front', WLR_PLUGIN_SLUG . '-main-front', WLR_PLUGIN_SLUG . '-wlr-font' ] ); -
apply_filters( 'wlr_front_js_handler', [ 'wc-cart-fragments', WLR_PLUGIN_SLUG . '-main', WLR_PLUGIN_SLUG . '-alertify-front' ] ); -
apply_filters( 'wlr_generate_referral_code', $ref_code, $prefix, $email ); -
apply_filters( 'wlr_generate_reward_code', $reward_code, $prefix ); -
apply_filters( 'wlr_get_cart_earn_message_position', $cart_earn_point_display ); -
apply_filters( 'wlr_get_cart_redeem_message_position', $cart_redeem_point_display ); -
apply_filters( 'wlr_get_cart_subtotal', $subtotal, $cart_data ); -
apply_filters( 'wlr_get_clean_html_allowed_tags', $allowed_html, $html ); -
apply_filters( 'wlr_get_order_subtotal', $subtotal, $order_data ); -
apply_filters( 'wlr_get_order_total', $order->get_total(), $order ); -
apply_filters( 'wlr_get_product_categories', $categories, $product ); -
apply_filters( 'wlr_get_product_display_message_position', $display_product_display_position ); -
apply_filters( 'wlr_get_referral_url', $url, $code ); -
apply_filters( 'wlr_get_reward_label', $reward_label, $reward_count ); -
apply_filters( 'wlr_get_setting_data', $setting_data ); -
apply_filters( 'wlr_get_thank_you_message_position', $thank_you_msg_position ); -
apply_filters( 'wlr_handle_number_format_i18n', number_format_i18n( $point ), $point ); -
apply_filters( 'wlr_has_earn_campaign_conditions', $status, $this->earn_campaign ); -
apply_filters( 'wlr_internal_addons_list', $add_ons ); -
apply_filters( 'wlr_is_allow_earning_when_coupon', true, $coupons ); -
apply_filters( 'wlr_is_any_dynamic_notification', $data ); -
apply_filters( 'wlr_is_cart_earn_message_enabled', $cart_earn_point_display ); -
apply_filters( 'wlr_is_cart_message_fragment_needed', true ); -
apply_filters( 'wlr_is_cart_redeem_message_enabled', $cart_redeem_point_display ); -
apply_filters( 'wlr_is_checkout_earn_message_enabled', $cart_earn_point_display ); -
apply_filters( 'wlr_is_checkout_redeem_message_enabled', $cart_redeem_point_display ); -
apply_filters( 'wlr_is_condition_check_include_free_product', false, $items, $type ); -
apply_filters( 'wlr_is_eligible_for_earning', true, $action_type, $extra ); -
apply_filters( 'wlr_is_flush_required', $default_required ); -
apply_filters( 'wlr_is_license_valid', true, $data ); -
apply_filters( 'wlr_is_on_sale', $status, $product ); -
apply_filters( 'wlr_is_product_category_page', $category_page ); -
apply_filters( 'wlr_is_product_eligible_for_cart', true, $cart_item ); -
apply_filters( 'wlr_is_product_eligible_for_order', true, $order_item, $order ); -
apply_filters( 'wlr_is_product_eligible_for_product', true, $action_data[ $cal_type ] ); -
apply_filters( 'wlr_is_product_page_price', $item_price, $product ); -
apply_filters( 'wlr_is_show_redeem_message', $status, $reward_list, $points ); -
apply_filters( 'wlr_is_valid_email_types', [ 'earn_point_email', 'earn_reward_email', 'expire_email', 'expire_point_email', 'birthday_email', 'new_level_email' ] ); -
apply_filters( 'wlr_is_validate_reward_coupon_error_message', false, $err_code, $coupon ); -
apply_filters( 'wlr_load_admin_asset_with_time', true ); -
apply_filters( 'wlr_load_asset_with_time', true ); -
apply_filters( 'wlr_load_site_main_js_depends', $main_js ); -
do_action( 'wlr_manage_pages', $view ); -
apply_filters( 'wlr_maximum_amount_conditions', array( 'cart_subtotal' ), $available_conditions ); -
apply_filters( 'wlr_minimum_amount_conditions', array( 'cart_subtotal' ), $available_conditions ); -
do_action( 'wlr_my_account_email_change', $new_user_email, $old_user_data['user_email'] ); -
apply_filters( 'wlr_my_account_point_and_reward_page', $my_account_content, $main_page_params ); -
do_action( 'wlr_new_coupon', $id ); -
apply_filters( 'wlr_not_eligible_to_earn_via_order', true, $order_email, $order ); -
do_action( 'wlr_notify_after_add_earn_point', $action_data['user_email'], $point, $action_type, $action_data ); -
do_action( 'wlr_notify_after_add_earn_reward', $action_data['user_email'], $reward, $action_type, $action_data ); -
do_action( 'wlr_notify_after_add_extra_earn_point', $action_data['user_email'], $point, $action_type, $action_data ); -
do_action( 'wlr_notify_after_add_extra_earn_reward', $action_data['user_email'], $reward, $action_type, $action_data ); -
apply_filters( 'wlr_notify_email_content_data', $data ); -
do_action( 'wlr_notify_send_expire_email', $single_user_reward ); -
do_action( 'wlr_notify_send_expire_point_email', $single_expire_point ); -
apply_filters( 'wlr_on_boarding_before_save', $post_data ); -
apply_filters( 'wlr_order_email', $user_email, $order ); -
apply_filters( 'wlr_order_language', $order_language, $order_id ); -
apply_filters( 'wlr_order_return_transaction', $insert_id, $args ); -
apply_filters( 'wlr_order_site_language', $woocommerce->getPluginBasedOrderLanguage( $order_id ) ); -
apply_filters( 'wlr_orders_through_wc_order_query', wc_get_orders( $args ), $args ); -
apply_filters( 'wlr_orders_through_wp_query', $query->get_posts(), $query, $args ); -
apply_filters( 'wlr_page_branding_details', [ 'theme_color' => Settings::get( 'theme_color', '#4F47EB' ), 'border_color' => Settings::get( 'border_color', '#CFCFCF' ), 'background_color' => Settings::get( 'background_color', '#ffffff' ), 'button_text_color' => Settings::get( 'button_text_color', '#ffffff' ), 'heading_color' => Settings::get( 'heading_color', '#1D2327' ), 'redeem_point_icon' => Settings::get( 'redeem_point_icon' ), 'avail... ); -
apply_filters( 'wlr_page_campaign_list', $campaign_list ); -
apply_filters( 'wlr_page_point_expire_details', array( 'expire_points' => $expire_point_data['expire_points'], 'expire_points_total' => (int) $expire_point_data['expire_points_total'], 'offset' => $offset, 'current_point_expire_count' => (int) ( $offset * $limit ) ) ); -
apply_filters( 'wlr_page_reward_list', $reward_list ); -
apply_filters( 'wlr_page_used_expired_coupon_details', array( 'expired_used_coupons' => $used_expired_coupons['data'], 'expired_used_coupons_total' => (int) $used_expired_coupons['total'], 'offset' => $offset, 'limit' => $limit, 'current_expired_coupon_count' => (int) ( $offset * $limit ) ) ); -
apply_filters( 'wlr_page_user_details', $user ); -
apply_filters( 'wlr_page_user_reward_list', $user_reward_list ); -
apply_filters( 'wlr_plugin_labels', $json ); -
apply_filters( 'wlr_point_action_links', $action_links ); -
apply_filters( 'wlr_point_expire_mail_short_code', $short_codes ); -
apply_filters( 'wlr_point_expire_mail_short_codes', $this->placeholders, $email_data ); -
apply_filters( 'wlr_point_for_purchase_message_shortcodes', array( '{wlr_points}' => $point > 0 ? self::$woocommerce_helper->numberFormatI18n( $point ) : '', '{wlr_product_points}' => $point > 0 ? self::$woocommerce_helper->numberFormatI18n( $point ) : '', '{wlr_points_label}' => $this->getPointLabel( $point ), '{wlr_reward_label}' => $this->getRewardLabel( $reward_count ), '{wlr_rewards}' => $available_rewards, ) ); -
apply_filters( 'wlr_points_for_campaigns_list', $total_earn_point, $loyalty_user ); -
apply_filters( 'wlr_points_for_my_account_reward_page', $user->earn_total_point, $user ); -
apply_filters( 'wlr_points_to_get_level_id', $point, $user_fields ); -
apply_filters( 'wlr_pro_local_data', $localize ); -
apply_filters( 'wlr_process_message_short_codes', $message, $short_codes ); -
apply_filters( 'wlr_process_order_earn_after_discount', $is_earn_point_after_discount ); -
apply_filters( 'wlr_product_action_list', $cart_action_list ); -
apply_filters( 'wlr_product_category_ids_conditions', array( 'product_category' ), $available_conditions ); -
apply_filters( 'wlr_product_ids_conditions', array( 'products' ), $available_conditions ); -
apply_filters( 'wlr_read_more_less_content', $response_div, $message, $read_key, $length, $read_more_text, $read_less_text, $id_prefix, $class ); -
apply_filters( 'wlr_recent_activity_content', $page_content, $recent_activity_params ); -
apply_filters( 'wlr_recent_activity_transaction_limit', 5 ); -
apply_filters( 'wlr_redeem_message_after_design', $design_message, $message ); -
do_action( 'wlr_register_endpoint_data', $extend ); -
apply_filters( 'wlr_reset_email_template', false, $email_type ); -
apply_filters( 'wlr_reward_conditions', [ 'redeem_point' => [ 'Common' => [ 'label' => __( 'Common', 'wp-loyalty-rules' ), 'options' => [ 'language' => __( 'language', 'wp-loyalty-rules' ), 'currency' => __( 'Currency', 'wp-loyalty-rules' ), 'user_point' => __( 'Customer Points', 'wp-loyalty-rules' ), ] ], 'Cart' => [ 'label' => __( 'Cart', 'wp-loyalty-rules' ), 'options' => [ 'cart_subtotal' => __( 'Cart Subtotal', 'wp-loyalty-rules... ); -
apply_filters( 'wlr_reward_coupon_is_valid', $is_valid, $coupon, $user_reward ); -
apply_filters( 'wlr_reward_types', [ 'fixed_cart' => __( 'Fixed discount', 'wp-loyalty-rules' ), 'percent' => __( 'Percentage discount', 'wp-loyalty-rules' ), 'free_shipping' => __( 'Free shipping', 'wp-loyalty-rules' ), 'free_product' => __( 'Free product', 'wp-loyalty-rules' ), 'points_conversion' => is_admin() ? __( 'Points conversion', 'wp-loyalty-rules' ) : sprintf( __( '%s conversion', 'wp-loyalty-rules' ), Settings::getPo... ); -
apply_filters( 'wlr_rewards_tab_card_count', 6 ); -
apply_filters( 'wlr_rewards_tab_content', $page_content, $page_params ); -
apply_filters( 'wlr_rule_user_role_on_condition_check', $user, $data ); -
apply_filters( 'wlr_rules_attribute_slug', urldecode( $taxonomy ), $taxonomy, $value ); -
apply_filters( 'wlr_rules_get_attribute_id_from_taxonomy_name', $attr_ids, $taxonomy, $product, $cart_item, $operation_values ); -
apply_filters( 'wlr_rules_get_product_parent_id', $parent_id, $product ); -
apply_filters( 'wlr_rules_get_wc_product', wc_get_product( $product_id ), $product_id ); -
apply_filters( 'wlr_save_email_template', false, $template_body, $email_type ); -
do_action( 'wlr_schedule_event_register' ); -
apply_filters( 'wlr_setting_unsuccessful_order_status_list', [ 'failed', 'cancelled', 'refunded' ] ); -
apply_filters( 'wlr_should_stop_processing_messages', $status ); -
apply_filters( 'wlr_show_auto_apply_coupon_error_message', true, $discount_code ); -
apply_filters( 'wlr_show_coupon_will_apply_message', true, $user_reward ); -
apply_filters( 'wlr_social_action_list', $social_action_list ); -
apply_filters( 'wlr_social_reward_list', $reward_list, $user_email ); -
apply_filters( 'wlr_subtotal_condition', $subtotal, $options, $data ); -
apply_filters( 'wlr_tab_process_reward_list', $reward_list ); -
apply_filters( 'wlr_thank_you_message', $message, $point, $user_point, $rewards ); -
apply_filters( 'wlr_thank_you_message_enabled', $cart_redeem_point_display ); -
apply_filters( 'wlr_user_level_id', $user_fields['level_id'], $user_fields['earn_total_point'], $user_fields ); -
apply_filters( 'wlr_user_point_reward_list', $rewards, $user_email, $user_point ); -
apply_filters( 'wlr_user_reward_point_conversion_price_format', sprintf( '=(%s) %s', $woocommerce_currency, $woocommerce_currency_symbol ), $woocommerce_currency, $woocommerce_currency_symbol ); -
apply_filters( 'wlr_user_reward_point_conversion_redeem_data', array( 'reward_type_name' => $reward_type_name, 'input_point' => $input_point, 'input_value' => $input_value, 'available_point' => $available_point, 'cart_amount' => $cart_amount, 'max_allowed_point' => floor( $max_allowed_point ), 'min_allowed_point' => floor( $min_allowed_point ), 'conversion_price_format' => $conversion_price_format, 'is_max_changed' => $is_max_changed, 'min_message' => spri... ); -
apply_filters( 'wlr_user_role_status', true, $user ); -
apply_filters( 'wlr_valid_customer_page_types', $valid_page_types ); -
apply_filters( 'wlr_validate_reward_coupon_billing_email', strtolower( $billing_email ), $coupon, $discount ); -
apply_filters( 'wlr_validate_reward_coupon_extra_data', [ 'user_email' => $user_email, 'cart' => $woocommerce->getCart(), 'is_calculate_based' => 'cart' ], $coupon, $discount ); -
apply_filters( 'wlr_validate_reward_coupon_user_email', $user_email, $coupon, $discount ); -
apply_filters( 'woocs_convert_price', $productPrice, false ); -
apply_filters( 'wpml_current_language', null );
Generated from Loyalty Points Rewards and Referral for WooCommerce's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: