Simple Points and Rewards for WooCommerce 3.1.1 has 49 actions and 181 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 Simple Points and Rewards for WooCommerce fires an action
add_action( 'spar_after_order_points_meta_box', function( $order ) {
// Your code runs here.
}, 10, 1 );
// Change a value Simple Points and Rewards for WooCommerce is about to use
add_filter( 'spar_points_redemption_fee_tax_args', function( $args ) {
// Change $args here.
return $args;
}, 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
-
/** * This filter is documented below. */ apply_filters( 'spar_points_redemption_fee_tax_args', $args ); -
/** * This action is documented at the end of this function. */ do_action( 'spar_after_order_points_meta_box', $order ); -
/** * Filter whether this call may award points for the order. Integrations can * block a specific award path (e.g. subscription renewals award via their own * timing-aware hook instead of the core thank-you/status hooks). */ apply_filters( 'spar_award_order_points_allowed', true, $order, $force_award ); -
/** * This filter is documented below. */ apply_filters( 'spar_is_avalara_tax_plugin_active', $cached ); -
/** * Fires after the award status, before the customer card. */ do_action( 'spar_order_points_meta_box_after_status', $order ); -
/** * This filter is documented in includes/functions-redeem.php */ apply_filters( 'spar_reward_cost_points', $cost, $reward, (int) $user_id ); -
/** * This action is documented in includes/functions-core.php */ do_action( 'spar_user_level_changed', $user_id, $level, $previous, (int) spar_get_user_total_points_earned( $user_id ) ); -
/** * Filter the abilities connector plugins are not sharing. */ apply_filters( 'spar_abilities_connector_gaps', $gaps ); -
/** * Filter the MCP connector plugins suggested on the AI & MCP tab. */ apply_filters( 'spar_abilities_connector_plugins', $plugins ); -
/** * Filter the abilities Simple Points and Rewards registers. */ apply_filters( 'spar_abilities_definitions', spar_abilities_definitions() ); -
/** * Filter how many recent ability calls are kept for the AI & MCP tab. */ apply_filters( 'spar_abilities_log_size', 30 ); -
/** * Filter whether Simple Points and Rewards registers its own MCP server. */ apply_filters( 'spar_abilities_mcp_server_enabled', true ); -
/** * Filter how many ability calls a user may make per minute. */ apply_filters( 'spar_abilities_rate_limit', ( 'write' === $type ) ? 20 : 120, $type, $user_id ); -
/** * Filter how an ability call is recorded as having arrived. */ apply_filters( 'spar_abilities_request_channel', $channel, $route ); -
/** * Filter whether to offer the "Enable AI tools" notice. */ apply_filters( 'spar_abilities_show_notice', '' !== spar_abilities_notice_reason() ); -
/** * Fires after an administrator redeems points against an order. */ do_action( 'spar_admin_order_points_redeemed', $order_id, $user_id, (int) $points, (float) $amount ); -
/** * Fires after an administrator removes a points redemption from an order. */ do_action( 'spar_admin_order_points_redemption_removed', $order_id, $user_id, (int) $to_refund ); -
/** * Filter whether the admin may redeem points against this order. */ apply_filters( 'spar_admin_order_redemption_allowed', $allowed, $order ); -
/** * Filter whether the order editor offers points redemption. */ apply_filters( 'spar_admin_order_redemption_enabled', $enabled ); -
/** * Filter the tools listed on the Tools page. */ apply_filters( 'spar_admin_tools', $tools ); -
/** * Fires after awarding order points and persisting order meta. */ do_action( 'spar_after_award_order_points', $order_id, $user_id, $points ); -
/** * Fires after deducting points tied to an order status change. */ do_action( 'spar_after_deduct_order_points', (int) $order_id, (int) $user_id, (int) $points_to_deduct, (string) $order_status ); -
/** * Fires after a partial refund takes back its share of an order's points. */ do_action( 'spar_after_deduct_partial_refund_order_points', $order_id, $user_id, $to_deduct, $share ); -
/** * Fires after a partial refund takes back its share of a referral bonus. */ do_action( 'spar_after_deduct_partial_refund_referral_points', $referrer_id, $order, $taken, $share ); -
/** * Fires after a user's points balance is updated. */ do_action( 'spar_after_points_update', $user_id, (int) $new, (int) $points, $action, $note, $action_id, $context ); -
/** * Filter the array of all levels prior to use. */ apply_filters( 'spar_all_levels', $all_levels, $options ); -
/** * Handle a form action from another part of the API screen. */ apply_filters( 'spar_api_admin_handle_action', $redirect, $action ); -
/** * Filter how many buckets failed authentication attempts are held in. */ apply_filters( 'spar_api_auth_failure_buckets', 256 ); -
/** * Filter the reward types that can be claimed through the API and AI * abilities. */ apply_filters( 'spar_api_claimable_reward_types', array('voucher', 'custom', 'store_credit') ); -
/** * Filter the REST API controllers, as class name => file. */ apply_filters( 'spar_api_controller_files', $files ); -
/** * Filter a customer as the REST API and AI abilities return it. */ apply_filters( 'spar_api_customer', $data, $user_id, $full ); -
/** * Filter how many buckets anonymous callers are spread across. */ apply_filters( 'spar_api_ip_buckets', 256 ); -
/** * Filter how many failed API key attempts an address may make in 15 minutes. */ apply_filters( 'spar_api_max_auth_failures', 20 ); -
/** * Filter whether the OpenAPI document is publicly readable. */ apply_filters( 'spar_api_openapi_public', true ); -
/** * Filter the generated OpenAPI document. */ apply_filters( 'spar_api_openapi_spec', $spec ); -
/** * Filter the per-minute API rate limit. */ apply_filters( 'spar_api_rate_limit', is_user_logged_in() ? 120 : 30, $identity ); -
/** * Filter whether API keys may only be used over HTTPS. */ apply_filters( 'spar_api_require_https', spar_api_requires_https() ); -
/** * Filter a reward as the REST API and AI abilities return it. */ apply_filters( 'spar_api_reward', $data, $reward, (int) $user_id ); -
/** * Known AvaTax plugin files, relative to the plugins directory. */ apply_filters( 'spar_avalara_tax_plugin_files', array( 'woocommerce-avatax/woocommerce-avatax.php', 'avatax/avatax.php', 'avatax-woocommerce/avatax-woocommerce.php', ) ); -
/** * Fires when an order's points could not be credited to the customer. */ do_action( 'spar_award_order_points_blocked', $order_id, $user_id, $points, (string) ($update['reason'] ?? '') ); -
/** * Filter the available badge icons for levels. */ apply_filters( 'spar_badge_icons', $icons ); -
/** * Fires when a banned user attempts to earn points (blocked). */ do_action( 'spar_banned_user_points_blocked', $user_id, (int) $points, $note, $action_id, $context ); -
/** * Allow hooking before auto-apply from query */ do_action( 'spar_before_apply_coupon_from_query', $coupon_code ); -
/** * Fires before calculating and awarding order points for a given order. */ do_action( 'spar_before_award_order_points', $order_id, $user_id ); -
/** * Fires right before a user's points balance is updated. */ do_action( 'spar_before_points_update', $user_id, $points, $action, $note, $action_id, $context ); -
/** * Filter the points discount taken off the cart total that points are earned * on. */ apply_filters( 'spar_cart_points_discount_for_earning', $points_discount, $cart, $earn_key ); -
/** * Filter the cart hooks the compact Redeem Points tool can be printed on. */ apply_filters( 'spar_compact_redeem_cart_hooks', $spar_compact_cart_hooks ); -
/** * Filter the checkout hooks the compact Redeem Points tool can be printed on. */ apply_filters( 'spar_compact_redeem_checkout_hooks', $spar_compact_checkout_hooks ); -
/** * Filter the coupon limitation notes displayed in the voucher list. */ apply_filters( 'spar_coupon_limitation_notes', $notes, $coupon_id ); -
/** * Filter the header names accepted for each CSV import column. */ apply_filters( 'spar_csv_import_column_aliases', $aliases ); -
/** * Filter how long the dashboard keeps its figures, in seconds. */ apply_filters( 'spar_dashboard_cache_ttl', 10 * MINUTE_IN_SECONDS ); -
/** * Filter the ways to earn listed on the dashboard. */ apply_filters( 'spar_dashboard_earn_ways', $sorted ); -
/** * Filter the "where points come from" rows shown on the dashboard. */ apply_filters( 'spar_dashboard_earned_by_method', $grouped, $from, $to ); -
/** * Filter the features listed on the dashboard. */ apply_filters( 'spar_dashboard_features', $sorted ); -
/** * Filter the activity log action IDs the dashboard leaves out of points * earned. */ apply_filters( 'spar_dashboard_non_earning_action_ids', array( 'redeem_refund', 'refund_deleted', 'admin_undo', 'admin_set_balance', 'migration_add', 'migration_override', 'guest_migration', 'guest_sync_override' ) ); -
/** * Filter the program-wide figures on the dashboard. */ apply_filters( 'spar_dashboard_program_totals', $totals ); -
/** * Filter the quick actions on the dashboard. */ apply_filters( 'spar_dashboard_quick_actions', $actions ); -
/** * Filter the setup checklist on the dashboard. */ apply_filters( 'spar_dashboard_setup_checklist', $items ); -
/** * Filter the activity log action IDs the dashboard counts as points redeemed. */ apply_filters( 'spar_dashboard_spend_action_ids', array('redeem', 'buy_spins') ); -
/** * Filter whether order points are taken back in part on partial refunds. */ apply_filters( 'spar_deduct_order_points_on_partial_refund', $deduct && $partial ); -
/** * Filter whether partial refunds take back their share of a percentage-based * referral bonus. */ apply_filters( 'spar_deduct_referral_points_on_partial_refund', $enabled ); -
/** * Filters the builders of the Earn Points cards. */ apply_filters( 'spar_earn_cards_builders', $builders, $context ); -
/** * Filters how many ways to earn there must be before the cards are grouped * under headings. */ apply_filters( 'spar_earn_cards_group_threshold', 6 ); -
/** * Filters the groups the Earn Points cards are sorted into. */ apply_filters( 'spar_earn_cards_groups', $groups ); -
/** * Filters the group an Earn Points card is shown in. */ apply_filters( 'spar_earn_cards_way_group', $group, $way_key ); -
/** * Filters the HTML the Earn Points tab may contain. */ apply_filters( 'spar_earn_tab_allowed_html', $allowed ); -
/** * Filters the layout of the Earn Points tab on the rewards dashboard. */ apply_filters( 'spar_earn_tab_layout', $layout ); -
/** * Filter the store credit claimed email subject / body before sending. */ apply_filters( 'spar_email_store_credit_claimed_subject', $subject, array( 'user_id' => (int) $user_id, 'awarded' => $awarded, 'context' => $context ) ); -
/** * Filters the wrapped WooCommerce email content before sending. */ apply_filters( 'spar_email_wrapped_message', $wrapped, $to, $subject, $heading, $message_html ); -
/** * Filter whether the points message is auto-placed on templates that skip * WooCommerce's single product summary hooks. Return false to only use the * configured hook. */ apply_filters( 'spar_enable_product_points_builder_fallbacks', true, $selected_location ); -
/** * Filter the available shared Font Awesome icons. */ apply_filters( 'spar_font_awesome_icon_options', $icons ); -
/** * Filter whether the "You will earn X points" message is hidden on a page. */ apply_filters( 'spar_hide_earning_message_on_page', $hidden, $page ); -
/** * Filter the capability slug generated for a level. */ apply_filters( 'spar_level_capability', 'spar_' . $id, $id, $level ); -
/** * Filter the default display icon for a level badge. */ apply_filters( 'spar_level_default_badge_icon', $icon, $level ); -
/** * Filter the computed level progress percentage for a user. */ apply_filters( 'spar_level_progress', $progress, (int) $user_id, $current_level, $next_level ); -
/** * Filter the raw points data retrieved from an external plugin before usage. */ apply_filters( 'spar_migration_external_data', $data, $user_id, $plugin ); -
/** * Filter the normalised referral code during migration. */ apply_filters( 'spar_migration_normalized_referral_code', $normalized, $user_id, $source_referral ); -
/** * Filter the lifetime total earned value retrieved from the source plugin. */ apply_filters( 'spar_migration_normalized_total_earned', $source_total, $user_id, $mode, $plugin_key ); -
/** * Filter the migration source plugin definitions. */ apply_filters( 'spar_migration_plugin_definitions', $plugins ); -
/** * Filter detection per plugin. */ apply_filters( 'spar_migration_plugin_detected', $detected, $data, $key ); -
/** * Filter the final order points calculation. Used both for awarding and for * potential-points displays, so adjustments here stay consistent everywhere. */ apply_filters( 'spar_order_award_points_calculation', $calculation, $order, $user_id ); -
/** * Filter base order points calculated from spend-based settings before * multipliers/tiers. */ apply_filters( 'spar_order_base_points', $base, $order, $currency ); -
/** * Filter the action_id used for the deduction log. */ apply_filters( 'spar_order_deduction_action_id', $status_id, (int) $order_id, (int) $user_id ); -
/** * Filter the log text stored for the deduction event. */ apply_filters( 'spar_order_deduction_action_text', $action_text, (int) $order_id, (int) $user_id ); -
/** * Filter the points a partial refund takes back from the customer. */ apply_filters( 'spar_order_partial_refund_points_to_deduct', $to_deduct, $order, $basis, $share ); -
/** * Filter the log action text stored for order-earned points. */ apply_filters( 'spar_order_points_action_text', $action_text, $order_id, $user_id, $points, (float) $multiplier ); -
/** * Fires after an admin changes the points an order earned. */ do_action( 'spar_order_points_adjusted', $order_id, $user_id, $old, $new, $reason, $result ); -
/** * Filter the reason an order is blocked from earning points. */ apply_filters( 'spar_order_points_block_reason', '', $order ); -
/** * Filters the order points rate, for example to set a rate per currency. */ apply_filters( 'spar_order_points_rate', $rate, $currency_code ); -
/** * Filter the potential points shown in the order meta box. */ apply_filters( 'spar_order_potential_points_display', $points, $order ); -
/** * Filter the refunded amount taken off an order's points calculation total. */ apply_filters( 'spar_points_calculation_total_refunded_from_order', $refunded_total, $order, $earn_key, $prefs ); -
/** * Fires after points were converted into store credit. */ do_action( 'spar_points_converted_to_store_credit', (int) $user_id, (int) $points, $awarded ); -
/** * Filter whether the points discount tool may show on a page. */ apply_filters( 'spar_points_discount_allowed_on_page', $allowed, $page, $setting ); -
/** * Filter the fee amount for a points discount that includes tax. */ apply_filters( 'spar_points_discount_fee_amount', $amount, $value, $cart ); -
/** * Filter whether the points discount value includes tax. */ apply_filters( 'spar_points_discount_includes_tax', $enabled ); -
/** * Filter the computed points liability snapshot. */ apply_filters( 'spar_points_liability_snapshot', $liability ); -
/** * Fires after a points log row was inserted. */ do_action( 'spar_points_log_inserted', (int) $wpdb->insert_id, $row ); -
/** * Filter the row to be inserted into the points log table. */ apply_filters( 'spar_points_log_row', $row ); -
/** * Fires after the points log table structure has been upgraded. */ do_action( 'spar_points_log_table_upgraded', 'action_id' ); -
/** * Filter the enabled methods map used to decide which cards to show. Keys are * method slugs (e.g., 'order', 'signup'). Values are truthy to enable. */ apply_filters( 'spar_points_method_enabled_map', $enabled_methods, $options ); -
/** * Filter the computed points-per-method rows before rendering. */ apply_filters( 'spar_points_per_method_rows', $out, $args ); -
/** * Filter the computed redeemed-points-per-method rows before rendering. */ apply_filters( 'spar_points_redeemed_per_method_rows', $out, $args ); -
/** * Fires after points redemption is applied to the cart. */ do_action( 'spar_points_redemption_applied', (int) $user_id, (int) $points, (float) $discount, (float) $cap, (float) $amount, (string) $currency ); -
/** * Fires when a points redemption was requested but no discount landed on the * order. */ do_action( 'spar_points_redemption_unapplied', $order, (int) $points ); -
/** * Fires when points are removed from a user. */ do_action( 'spar_points_removed', $user_id, $points, $note, $action_id, $context ); -
/** * Allows integrations to short-circuit a points update before balances change. */ apply_filters( 'spar_pre_update_user_points', null, $user_id, $points, $action, $note, $action_id, $context ); -
/** * Allow developers to filter the available product loop points locations. */ apply_filters( 'spar_product_loop_points_location_options', $locations ); -
/** * Filter the fallback anchors used on page-builder / block product templates. */ apply_filters( 'spar_product_points_builder_fallback_hooks', $hooks, $selected_location ); -
/** * Filter the points shown in the product page / catalog "earn points" message. * Return 0 to hide the message entirely (e.g. for products excluded from * earning). */ apply_filters( 'spar_product_points_display', $points, $product, $context ); -
/** * Allow developers to filter the available product points locations. */ apply_filters( 'spar_product_points_location_options', $locations ); -
/** * Filter whether a user can use the rewards programme while it is switched * off. */ apply_filters( 'spar_program_active_for_user_while_disabled', $active, $user_id ); -
/** * Filter the action IDs that may still add points while the programme is * switched off. */ apply_filters( 'spar_program_disabled_allowed_action_ids', array( 'admin_adjustment', 'admin_set_balance', 'admin_undo', 'order_adjustment', 'redeem_refund', 'refund_deleted', 'migration_add', 'migration_override', 'guest_migration', 'guest_sync_override' ) ); -
/** * Fires when points are not added because the programme is switched off. */ do_action( 'spar_program_disabled_points_blocked', $user_id, (int) $points, $note, $action_id, $context ); -
/** * Filter whether the rewards programme is switched on for customers. */ apply_filters( 'spar_program_enabled', $enabled ); -
/** * Filter the cart total measured against the minimum redemption threshold. */ apply_filters( 'spar_redeem_min_cart_measured_total', $subtotal, $cart, $min ); -
/** * Filter how the points discount is rounded to whole cents. */ apply_filters( 'spar_redemption_amount_rounding', 'round', (string) $currency ); -
/** * Filter the redemption discount cap calculated from an order. */ apply_filters( 'spar_redemption_discount_cap_from_order', $total, $order ); -
/** * Filter the number of decimals a points discount is rounded to. */ apply_filters( 'spar_redemption_price_decimals', $decimals, (string) $currency ); -
/** * Filter the referral fraud decision for an order. */ apply_filters( 'spar_referral_award_block_reason', $reason, $order, $referrer_id, $options ); -
/** * Filter the referral bonus points before they are awarded. */ apply_filters( 'spar_referral_bonus_points', (int) $referral_points, $referrer_id, $order ); -
/** * Fires once the referral bonus for an order has been processed (after the * fraud checks passed), whether or not any points were awarded. */ do_action( 'spar_referral_bonus_processed', (int) $referrer_id, (int) $referral_points, $order ); -
/** * Fires when a referred order is refunded, cancelled or failed and its * referral bonus is being reversed. Points (if any) have just been deducted; * other bonus types (e.g. a Simple Store Credit bonus) reverse themselves * here. */ do_action( 'spar_referral_bonus_reversed', (int) $referrer_id, $order, $action_id, $status_text ); -
/** * Filter the referral points a partial refund takes back from the referrer. */ apply_filters( 'spar_referral_partial_refund_points_to_deduct', $to_deduct, $order, $referrer_id, $share ); -
/** * Filter whether refund deductions may take a balance below zero. */ apply_filters( 'spar_refunds_allow_negative_balance', !empty( $options['earn']['order']['refund_negative_balance'] ) ); -
/** * Filter the available badge icons for rewards. */ apply_filters( 'spar_reward_badge_icons', $icons ); -
/** * Filter the default display icon for a reward type. */ apply_filters( 'spar_reward_type_default_icon', $icon, $type, $icons ); -
/** * Filter how often (in seconds) a recurring job is re-verified against the * Action Scheduler tables. */ apply_filters( 'spar_scheduler_recheck_interval', 12 * HOUR_IN_SECONDS, $hook ); -
/** * Filter whether Action Scheduler should be used for plugin jobs. */ apply_filters( 'spar_scheduler_use_action_scheduler', $available ); -
/** * Filter the converted import payload before it is passed to the save * pipeline. */ apply_filters( 'spar_settings_import_payload', $payload, $imported ); -
/** * Filter the plugins whose scripts and styles load in the setup wizard's live * preview. Every other plugin's are left out, so the preview shows the page * content without widgets such as currency switchers or chat bubbles. */ apply_filters( 'spar_setup_wizard_preview_allowed_plugins', $allowed ); -
/** * Short-circuit the activity log insert. */ apply_filters( 'spar_skip_log_points_event', false, $user_id, $note, $type, $action_id ); -
/** * Filter the benefits list shown for the Starter (Level 0) tier. */ apply_filters( 'spar_starter_level_benefits', $benefits, $options ); -
/** * Filter whether the store credit integration is considered active. */ apply_filters( 'spar_store_credit_active', $active ); -
/** * Fires after a referral store credit bonus was awarded. */ do_action( 'spar_store_credit_referral_bonus_awarded', (int) $referrer_id, $awarded, $order ); -
/** * Fires after a referral store credit bonus was reversed. */ do_action( 'spar_store_credit_referral_bonus_reversed', $referrer_id, $reversed, $order ); -
/** * Fires after a store credit reward has been fulfilled. */ do_action( 'spar_store_credit_reward_claimed', (int) $user_id, $reward, $awarded ); -
/** * Filter the preview-then-run tools. */ apply_filters( 'spar_tool_jobs', array() ); -
/** * Filter the resolved current level for a user. */ apply_filters( 'spar_user_level', $current_level, (int) $user_id, $all_levels ); -
/** * Filter the next level for a user (or null if max level). */ apply_filters( 'spar_user_next_level', $next, (int) $user_id, $all_levels ); -
/** * Filter the returned points balance for a user. */ apply_filters( 'spar_user_points', $points, $user_id ); -
/** * Filter the points multiplier for a user's current level. */ apply_filters( 'spar_user_points_multiplier', $multiplier, (int) $user_id, $level, $earn_type ); -
/** * Fires when a voucher application is deferred due to empty cart. */ do_action( 'spar_voucher_deferred', $voucher_code ); -
do_action( 'spar_reward_redemption_refunded', (int) $user_id, $reward, $voucher_code ); -
do_action( 'spar_email_sent', 'points_earned', (bool) $sent, (string) $user->user_email, (string) $subject, (int) $user_id, (string) $action_id ); -
do_action( 'spar_after_reward_redemption', (int) $user_id, $reward, $voucher_code_safe ); -
apply_filters( 'spar_points_history_per_page', (int) $per_page, (int) $user_id ); -
do_action( 'spar_ajax_after_apply_voucher', $voucher_code, true ); -
apply_filters( 'spar_email_voucher_claimed_body', $body, [ 'user_id' => (int) $user_id, 'voucher_code' => (string) $voucher_code, 'voucher_type' => (string) $voucher_type, 'voucher_value' => $voucher_value ] ); -
apply_filters( 'spar_email_voucher_claimed_subject', $subject, [ 'user_id' => (int) $user_id, 'voucher_code' => (string) $voucher_code, 'voucher_type' => (string) $voucher_type, 'voucher_value' => $voucher_value ] ); -
apply_filters( 'spar_points_label', esc_html__( 'Points', 'simple-points-and-rewards' ) ); -
apply_filters( 'spar_referral_clicks_per_page', (int) $per_page, (int) $user_id ); -
apply_filters( 'spar_reward_object', $reward, (string) $reward['id'], (int) $user_id ); -
apply_filters( 'lws_woorewards_get_pools_by_args', false, array(), $user_id ); -
apply_filters( 'spar_admin_analytics_build_lock_ttl', 20 ); -
apply_filters( 'spar_admin_analytics_snapshot', $snapshot ); -
apply_filters( 'spar_admin_analytics_snapshot_cache_ttl', 300 ); -
do_action( 'spar_after_apply_coupon_from_query', $coupon_code, (bool) $applied ); -
do_action( 'spar_after_rewards_tab', (int) $user_id ); -
do_action( 'spar_ajax_before_apply_voucher', $voucher_code ); -
do_action( 'spar_before_handle_redeem_request', (int) $user_id, $reward_id ); -
do_action( 'spar_before_reward_redemption', (int) $user_id, $reward_id ); -
do_action( 'spar_before_rewards_tab', (int) $user_id, $visible_tabs ); -
apply_filters( 'spar_can_redeem_reward', true, (int) $user_id, $reward ); -
apply_filters( 'spar_cart_earning_blocked_by_redemption', $blocked, $cart, $amount ); -
apply_filters( 'spar_configured_points_label', $label ); -
apply_filters( 'spar_configured_points_label_singular', $label ); -
apply_filters( 'spar_csv_import_batch_size', $dry_run ? 250 : 50, $dry_run ); -
apply_filters( 'spar_csv_import_max_size', 20 * MB_IN_BYTES ); -
do_action( 'spar_custom_reward_claimed', (int) $user_id, (string) $developer_id, $reward, (int) $cost_points ); -
do_action( 'spar_customer_detail_after_referrals', $user_id ); -
apply_filters( 'spar_customer_points_batch_size', 50 ); -
apply_filters( 'spar_customer_points_default_orderby', 'points' ); -
apply_filters( 'spar_customer_points_per_page', 20 ); -
apply_filters( 'spar_earn_type_labels', $labels ); -
apply_filters( 'spar_email_level_up_body', $body, $context ); -
apply_filters( 'spar_email_level_up_subject', $subject, $context ); -
apply_filters( 'spar_email_points_earned_body', $body, [ 'user_id' => (int) $user_id, 'action_id' => (string) $action_id, 'points' => (int) $points ] ); -
apply_filters( 'spar_email_points_earned_subject', $subject, [ 'user_id' => (int) $user_id, 'action_id' => (string) $action_id, 'points' => (int) $points ] ); -
apply_filters( 'spar_email_skip_points_earned_for_action', array( 'migration_add', 'migration_override', 'guest_migration' ) ); -
apply_filters( 'spar_email_store_credit_claimed_body', $body, array( 'user_id' => (int) $user_id, 'awarded' => $awarded, 'context' => $context ) ); -
apply_filters( 'spar_formatted_points_message', $message, $template, $points, $points_label, $link_to_rewards, $rewards_url ); -
do_action( 'spar_fs_loaded' ); -
apply_filters( 'spar_funnelkit_side_cart_active', $funnelkit_active ); -
apply_filters( 'spar_migration_batch_size', 10 ); -
apply_filters( 'spar_migration_external_points', $data['balance'], $user_id, $plugin ); -
apply_filters( 'spar_migration_normalized_points', $source_points, $user_id, $mode, $plugin_key ); -
apply_filters( 'spar_migration_user_status_plugins', $supported ); -
apply_filters( 'spar_order_awarded_points', spar_round_points( $points_raw ), $order_id, $user_id, (int) $base_points, (int) $fixed_points, (float) $multiplier ); -
apply_filters( 'spar_order_earning_blocked_by_redemption', $blocked, $order ); -
apply_filters( 'spar_order_fixed_points', $fixed_points, $order, $fixed_info ); -
apply_filters( 'spar_order_points_multiplier', $multiplier, $user_id, $order_id ); -
apply_filters( 'spar_order_points_to_deduct', (int) $points_remaining, (int) $order_id, (int) $user_id, (string) $order_status ); -
do_action( 'spar_points_added', $user_id, $points, $note, $action_id, $context ); -
apply_filters( 'spar_points_calculation_total_from_cart', $total, $cart, $earn_key, $prefs ); -
apply_filters( 'spar_points_calculation_total_from_order', $total, $order, $earn_key, $prefs ); -
apply_filters( 'spar_points_icon_html', $html, $context, $url ); -
apply_filters( 'spar_points_icon_presets', $presets ); -
apply_filters( 'spar_points_icon_url', $url, $icon ); -
apply_filters( 'spar_points_label_for_count', $label, $points, $plural_label, $singular_label, $context ); -
apply_filters( 'spar_points_method_map', $map, $points_label ); -
apply_filters( 'spar_points_per_method_show_unknown', false, $present, $map, $args ); -
apply_filters( 'spar_points_prefix', $prefix ); -
apply_filters( 'spar_points_redeemed_method_map', $map ); -
apply_filters( 'spar_redeem_product_redirect_url', $redirect, (int) $user_id, $reward_id ); -
apply_filters( 'spar_redeem_success_redirect', $redirect_url, (int) $user_id, $reward_id, (string) $result ); -
do_action( 'spar_referral_award_blocked', $order->get_id(), $referrer_id, $block_reason ); -
do_action( "spar_render_tab_{$safe_hook_key}", (int) $user_id ); -
apply_filters( 'spar_reward_coupon_prefixes', [ 'gift-', 'voucher-', 'ref-', 'spin-' ] ); -
do_action( 'spar_reward_voucher_created', (int) $coupon_id, (string) $coupon_code, (int) $user_id, $reward ); -
apply_filters( 'spar_reward_voucher_meta', $coupon_meta, $reward, (int) $user_id, (int) $coupon_id, (string) $coupon_code ); -
apply_filters( 'spar_rewards_overview_html', $overview_html, (int) $user_id, $points, $options ); -
apply_filters( 'spar_rewards_visible_tabs', $visible_tabs, (int) $user_id, $available_tabs ); -
apply_filters( 'spar_rewards_vouchers_enabled', $enabled ); -
apply_filters( 'spar_settings_required_payload_fields', array( 'spar_save_settings', '_wpnonce', 'points_label', 'rewards_label', 'rewards_page_id', 'rewards_box_theme' ) ); -
apply_filters( 'spar_side_cart_selectors', [ '.fkcart-panel', '.fkcart-drawer', '.fkcart-cart', '.fkcart-mini-cart', '.wfacp-side-cart', '.wfacp-floating-cart', '.wffn-side-cart', '.wffn-cart', '.wfob-side-cart', '.wfob_cart' ] ); -
apply_filters( 'spar_side_cart_target_selectors', [ '.fkcart_summary_cta', '.fkcart-summary', '.fkcart-totals', '.fkcart-footer', '.wfacp-side-cart__summary', '.wfacp-order-summary', '.wffn-cart-footer', '.wfob_cart_summary' ] ); -
apply_filters( 'spar_store_credit_native_tool_detached', false ); -
apply_filters( 'spar_update_user_points_args', [ 'user_id' => (int) $user_id, 'points' => (int) $points, 'action' => (string) $action, 'note' => (string) $note, 'action_id' => ( is_string( $action_id ) ? sanitize_key( $action_id ) : '' ), 'context' => ( is_array( $context ) ? $context : array() ), 'options' => ( is_array( $options ) ? $options : array() ), ] ); -
apply_filters( 'spar_user_points_history', $result, (int) $user_id ); -
apply_filters( 'spar_user_referral_clicks_history', $result, (int) $user_id ); -
apply_filters( 'spar_user_referral_clicks_history_full', $result, (int) $user_id ); -
do_action( 'spar_voucher_auto_applied', $pending_code ); -
do_action( 'spar_voucher_claimed', $user_id, $voucher_code_safe, 'voucher', $voucher_value ); -
do_action( 'spar_voucher_pending_invalid', $pending_code ); -
apply_filters( 'spar_voucher_value_display', $display, $discount_type, $amount, $free_shipping, $parts ); -
apply_filters( 'sscp_allow_earn_for_order', true, $order );
Generated from Simple Points and Rewards 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: