EchoRewards icon
Utilities

EchoRewards hooks reference

  • By WPPOOL
  • v2.6.14
  • Updated

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.

functions.phpyour child theme
// 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

  • includes/Templates/Ecre_Email_Template.php line 280 · used in 2 places
    /**
     * 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 );
  • includes/Ecre_Generate_Coupon.php line 140 · used in 2 places
    /**
     * Filters the discount type used for referral coupons.
     */
    apply_filters( 'ecre_referral_coupon_type', $discount_type, $settings_discount_type, $this->settings );
  • includes/Admin/Ecre_Email.php line 184 · used in 2 places
    /**
     * Filters the reward type used when generating rewards.
     */
    apply_filters( 'ecre_reward_type', $reward_discount_type, $settings_reward_type, $settings );
  • includes/Ecre_Generate_Coupon.php line 182
    /**
     * Fires after a referral coupon has been created.
     */
    do_action( 'ecre_after_referral_coupon_created', $new_coupon_id, $this->settings );
  • includes/Ecre_Order_Tracking.php line 338
    /**
     * Fires after a reward coupon has been created.
     */
    do_action( 'ecre_after_reward_coupon_created', $new_coupon_id, $this->erce_settings );
  • includes/Ecre_Order_Tracking.php line 132
    /**
     * Filters whether reward generation should be delayed.
     */
    apply_filters( 'ecre_enable_reward_delay', false, $this->erce_settings );
  • includes/Ecre_Frontend.php line 61
    /**
     * Filters whether the built-in coupon tracking component should be loaded.
     */
    apply_filters( 'ecre_load_coupon_tracking', true, $erce_settings );
  • includes/Ecre_Ajax.php line 414
    /**
     * Filters the maximum number of referrals a customer may make per month.
     */
    apply_filters( 'ecre_monthly_referral_limit', 0, $merged_settings );
  • includes/Ecre_Ajax.php line 424
    /**
     * Filters how many referral coupons this customer has already used this month.
     */
    apply_filters( 'ecre_monthly_referral_usage', 0, $user_id );
  • includes/Ecre_Order_Tracking.php line 243
    /**
     * 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 );
  • includes/Admin/Ecre_Email.php line 156
    /**
     * Filters the discount value applied when redeeming reward points.
     */
    apply_filters( 'ecre_redeem_discount', $default_settings['redeemDiscount'], $settings );
  • includes/Admin/Ecre_Email.php line 166
    /**
     * Filters the number of points required for redemption.
     */
    apply_filters( 'ecre_redeem_point', $default_settings['redeemPoint'], $settings );
  • includes/Ecre_Generate_Coupon.php line 121
    /**
     * 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 );
  • includes/Admin/Ecre_Email.php line 100
    /**
     * Filters the body of the referral email.
     */
    apply_filters( 'ecre_referral_email_body', ! empty( $settings['referralEmailBody'] ) ? $settings['referralEmailBody'] : $default_settings['referralEmailBody'], $settings );
  • includes/Admin/Ecre_Email.php line 90
    /**
     * Filters the heading of the referral email.
     */
    apply_filters( 'ecre_referral_email_heading', ! empty( $settings['referralEmailHeading'] ) ? $settings['referralEmailHeading'] : $default_settings['referralEmailHeading'], $settings );
  • includes/Admin/Ecre_Email.php line 80
    /**
     * Filters the subject line of the referral email.
     */
    apply_filters( 'ecre_referral_email_subject', ! empty( $settings['referralEmailSubject'] ) ? $settings['referralEmailSubject'] : $default_settings['referralEmailSubject'], $settings );
  • includes/Ecre_Ajax.php line 677
    /**
     * Filters the time range used when building report data.
     */
    apply_filters( 'ecre_report_time_range', 'echo_range_last_week', $fetch_data );
  • includes/Ecre_Order_Tracking.php line 142
    /**
     * Filters the number of days to wait before generating a reward.
     */
    apply_filters( 'ecre_reward_delay_days', 0, $this->erce_settings );
  • includes/Admin/Ecre_Email.php line 146
    /**
     * Filters the reward discount amount used in the reward email.
     */
    apply_filters( 'ecre_reward_discount', $default_settings['rewardDiscount'], $settings );
  • includes/Admin/Ecre_Email.php line 136
    /**
     * Filters the body of the reward email.
     */
    apply_filters( 'ecre_reward_email_body', ! empty( $settings['rewardEmailBody'] ) ? $settings['rewardEmailBody'] : $default_settings['rewardEmailBody'], $settings );
  • includes/Admin/Ecre_Email.php line 126
    /**
     * Filters the heading of the reward email.
     */
    apply_filters( 'ecre_reward_email_heading', ! empty( $settings['rewardEmailHeading'] ) ? $settings['rewardEmailHeading'] : $default_settings['rewardEmailHeading'], $settings );
  • includes/Admin/Ecre_Email.php line 116
    /**
     * Filters the subject line of the reward email.
     */
    apply_filters( 'ecre_reward_email_subject', ! empty( $settings['rewardEmailSubject'] ) ? $settings['rewardEmailSubject'] : $default_settings['rewardEmailSubject'], $settings );
  • includes/Ecre_Order_Tracking.php line 122
    /**
     * Filters the order status that triggers reward generation.
     */
    apply_filters( 'ecre_reward_order_status', 'completed', $this->erce_settings );
  • includes/Ecre_Order_Tracking.php line 513
    /**
     * 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 );
  • includes/ecre-functions.php line 1958
    apply_filters( 'ecre_existing_customer_order_statuses', array( 'wc-processing', 'wc-on-hold', 'wc-completed' ) );
  • includes/ecre-functions.php line 1981
    apply_filters( 'ecre_is_existing_customer', $found, $user_id, $emails );
  • includes/wppool/class-plugin.php line 1023
    apply_filters( 'wppool_inline_styles', $css );
  • includes/wppool/class-plugin.php line 207
    apply_filters( 'wppool_plugins', $this->plugins );
  • includes/wppool/class-plugin.php line 308
    apply_filters( 'wppool_popup_image', ( file_exists( __DIR__ . '/background-image.png' ) ? plugin_dir_url( __FILE__ ) . '/background-image.png' : '' ), $this->plugin_id );
  • includes/wppool/class-plugin.php line 235
    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.

Plugin 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 this

Not 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: