EchoRewards 2.6.14 has 2 actions and 28 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 EchoRewards fires an action
add_action( 'ecre_after_referral_coupon_created', function( $new_coupon_id, $settings ) {
// Your code runs here.
}, 10, 2 );
// Change a value EchoRewards is about to use
add_filter( 'ecre_email_header_bg_color', function( $value, $email_type ) {
// Change $value here.
return $value;
}, 10, 2 );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
-
/** * Filters the email header background color/CSS value for the referral and * reward coupon emails, keyed by email type ('referral_email' or the reward * email type passed in), so users can rebrand the header without editing * plugin files. */ apply_filters( 'ecre_email_header_bg_color', '#7956AD', $email_type ); -
/** * Filters the discount type used for referral coupons. */ apply_filters( 'ecre_referral_coupon_type', $discount_type, $settings_discount_type, $this->settings ); -
/** * Filters the reward type used when generating rewards. */ apply_filters( 'ecre_reward_type', $reward_discount_type, $settings_reward_type, $settings ); -
/** * Fires after a referral coupon has been created. */ do_action( 'ecre_after_referral_coupon_created', $new_coupon_id, $this->settings ); -
/** * Fires after a reward coupon has been created. */ do_action( 'ecre_after_reward_coupon_created', $new_coupon_id, $this->erce_settings ); -
/** * Filters whether reward generation should be delayed. */ apply_filters( 'ecre_enable_reward_delay', false, $this->erce_settings ); -
/** * Filters whether the built-in coupon tracking component should be loaded. */ apply_filters( 'ecre_load_coupon_tracking', true, $erce_settings ); -
/** * Filters the maximum number of referrals a customer may make per month. */ apply_filters( 'ecre_monthly_referral_limit', 0, $merged_settings ); -
/** * Filters how many referral coupons this customer has already used this month. */ apply_filters( 'ecre_monthly_referral_usage', 0, $user_id ); -
/** * Allows an add-on to generate the reward instead of the built-in generator. */ apply_filters( 'ecre_pre_generate_reward', null, $referral_user_id, $order_id, $reward_type, $coupon_id ); -
/** * Filters the discount value applied when redeeming reward points. */ apply_filters( 'ecre_redeem_discount', $default_settings['redeemDiscount'], $settings ); -
/** * Filters the number of points required for redemption. */ apply_filters( 'ecre_redeem_point', $default_settings['redeemPoint'], $settings ); -
/** * Filters the prefix applied to generated referral coupon codes. */ apply_filters( 'ecre_referral_coupon_prefix', ! empty( $this->settings['referralCouponPrefix'] ) ? $this->settings['referralCouponPrefix'] : $default_settings['referralCouponPrefix'], $this->settings ); -
/** * Filters the body of the referral email. */ apply_filters( 'ecre_referral_email_body', ! empty( $settings['referralEmailBody'] ) ? $settings['referralEmailBody'] : $default_settings['referralEmailBody'], $settings ); -
/** * Filters the heading of the referral email. */ apply_filters( 'ecre_referral_email_heading', ! empty( $settings['referralEmailHeading'] ) ? $settings['referralEmailHeading'] : $default_settings['referralEmailHeading'], $settings ); -
/** * Filters the subject line of the referral email. */ apply_filters( 'ecre_referral_email_subject', ! empty( $settings['referralEmailSubject'] ) ? $settings['referralEmailSubject'] : $default_settings['referralEmailSubject'], $settings ); -
/** * Filters the time range used when building report data. */ apply_filters( 'ecre_report_time_range', 'echo_range_last_week', $fetch_data ); -
/** * Filters the number of days to wait before generating a reward. */ apply_filters( 'ecre_reward_delay_days', 0, $this->erce_settings ); -
/** * Filters the reward discount amount used in the reward email. */ apply_filters( 'ecre_reward_discount', $default_settings['rewardDiscount'], $settings ); -
/** * Filters the body of the reward email. */ apply_filters( 'ecre_reward_email_body', ! empty( $settings['rewardEmailBody'] ) ? $settings['rewardEmailBody'] : $default_settings['rewardEmailBody'], $settings ); -
/** * Filters the heading of the reward email. */ apply_filters( 'ecre_reward_email_heading', ! empty( $settings['rewardEmailHeading'] ) ? $settings['rewardEmailHeading'] : $default_settings['rewardEmailHeading'], $settings ); -
/** * Filters the subject line of the reward email. */ apply_filters( 'ecre_reward_email_subject', ! empty( $settings['rewardEmailSubject'] ) ? $settings['rewardEmailSubject'] : $default_settings['rewardEmailSubject'], $settings ); -
/** * Filters the order status that triggers reward generation. */ apply_filters( 'ecre_reward_order_status', 'completed', $this->erce_settings ); -
/** * Filters whether the "Issue Now" / "Cancel" schedule-action buttons (and * their confirmation popup) render for a pending scheduled reward. */ apply_filters( 'ecre_schedule_actions_enabled', false ); -
apply_filters( 'ecre_existing_customer_order_statuses', array( 'wc-processing', 'wc-on-hold', 'wc-completed' ) ); -
apply_filters( 'ecre_is_existing_customer', $found, $user_id, $emails ); -
apply_filters( 'wppool_inline_styles', $css ); -
apply_filters( 'wppool_plugins', $this->plugins ); -
apply_filters( 'wppool_popup_image', ( file_exists( __DIR__ . '/background-image.png' ) ? plugin_dir_url( __FILE__ ) . '/background-image.png' : '' ), $this->plugin_id ); -
apply_filters( 'wppool_tags', array_merge( $this->tags, $this->custom_tags ) );
Generated from EchoRewards'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: