RefPress 1.0.0 has 49 actions and 76 filters, read directly from its source code on Nov 19, 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 RefPress fires an action
add_action( 'refpress_add_earning_data_after', function( $earning_id, $earning_data ) {
// Your code runs here.
}, 10, 2 );
// Change a value RefPress is about to use
add_filter( 'refpress_chartjs_supported_pages', function( $value ) {
// Change $value here.
return $value;
}, 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
-
/** * Action after add referral earning data */ do_action( 'refpress_add_earning_data_after', $earning_id, $earning_data ); -
/** * Action before add referral earning data */ do_action( 'refpress_add_earning_data_before', $earning_data ); -
/** * RefPress ChartJS Supported pages in Array */ apply_filters( 'refpress_chartjs_supported_pages', [ 'toplevel_page_refpress' ] ); -
/** * Action when earnings status changed */ do_action( 'refpress_earning_status_change', $earning_id, $status_from, $status_to ); -
/** * Filter order edit admin link */ apply_filters( 'refpress_get_order_edit_link', $link, $order_id, $processed_by ); -
/** * Filter referer email */ apply_filters( 'refpress_get_referer_email', $email, $referer, $wp_user ); -
/** * Tell WP if RefPress should load ChartJS */ apply_filters( 'refpress_load_chart_js', in_array( $page, $chartjs_supported_pages ), $page ); -
/** * Should user login right after signup */ apply_filters( 'refpress_login_after_register', true ); -
/** * Action hook after payout status change */ do_action( 'refpress_payout_status_change', $payout_id, $status_from, $status_to ); -
/** * Filter default allowed tags for the function * refpress_sanitize_html_allowed_tags(); */ apply_filters( 'refpress_sanitize_html_allowed_tags', $allowed_tags ); -
apply_filters( 'active_plugins', get_option( 'active_plugins' ) ); -
apply_filters( 'refpress_admin_accounts_page', REFPRESS_ABSPATH . 'includes/admin/accounts/list.php' ); -
apply_filters( 'refpress_allow_self_refer', false, $referer_id, $account ); -
apply_filters( 'refpress_get_accounts_default_args', [ 'search_term' => '', 'not_in_ids' => [], 'start' => 0, 'per_page' => 10, 'orderby' => null, 'order' => null, ] ); -
apply_filters( 'edd_download_metabox_post_types', [ 'download' ] ); -
do_action( 'edd_refpress_metabox', $post_ID ); -
apply_filters( 'logged_user_join_request_form_validation_rules', [ [ 'field' => 'promotional_strategies', 'label' => __( 'Promotional Strategies', 'refpress' ), 'rules' => 'required', ], ] ); -
apply_filters( 'login_errors', $e->getMessage() ); -
do_action( 'login_form' ); -
apply_filters( 'login_form_middle', '', '' ); -
apply_filters( 'refpress_account_status', $statusText, $status ); -
apply_filters( 'refpress_account_statuses', [ 'pending' => __( 'Pending', 'refpress' ), 'approved' => __( 'Approved', 'refpress' ), 'blocked' => __( 'Blocked', 'refpress' ), ] ); -
apply_filters( 'refpress_account_uri', $account_page_uri, $menu_item ); -
apply_filters( 'refpress_accounts_list_actions', $actions, $item ); -
do_action( 'refpress_accounts_status_update_after', $account, $new_status, $old_status ); -
do_action( 'refpress_accounts_status_update_before', $account, $new_status, $old_status ); -
apply_filters( 'refpress_add_referer_commission_default_args', [ 'referer_id' => 0, 'traffic_id' => 0, 'customer_id' => 0, 'customer_ip' => refpress_get_ip_address(), 'order_id' => 0, 'order_status' => 'pending', 'referer_amount' => '0.00', 'process_by' => '', ] ); -
apply_filters( 'refpress_admin_payout_history_page', REFPRESS_ABSPATH . 'includes/admin/payout/payouts.php' ); -
apply_filters( 'refpress_admin_referrals_list_page', REFPRESS_ABSPATH . 'includes/admin/accounts/referrals.php' ); -
do_action( 'refpress_after_login_form' ); -
do_action( 'refpress_after_save_settings' ); -
apply_filters( 'refpress_allow_referral_for_organic_visitor', false ); -
do_action( 'refpress_before_login_form' ); -
do_action( 'refpress_before_save_settings' ); -
apply_filters( 'refpress_commission_wc_product_total', $product_total, $product_id, $order_id ); -
apply_filters( 'refpress_currencies', array( 'AED' => __( 'United Arab Emirates dirham', 'refpress' ), 'AFN' => __( 'Afghan afghani', 'refpress' ), 'ALL' => __( 'Albanian lek', 'refpress' ), 'AMD' => __( 'Armenian dram', 'refpress' ), 'ANG' => __( 'Netherlands Antillean guilder', 'refpress' ), 'AOA' => __( 'Angolan kwanza', 'refpress' ), 'ARS' => __( 'Argentine peso', 'refpress' ), 'AUD' => __( 'Australian dollar', 'refpress' ), 'A... ); -
apply_filters( 'refpress_currency_symbol', $currency_symbol, $currency ); -
apply_filters( 'refpress_currency_symbols', array( 'AED' => 'د.إ', 'AFN' => '؋', 'ALL' => 'L', 'AMD' => 'AMD', 'ANG' => 'ƒ', 'AOA' => 'Kz', 'ARS' => '$', 'AUD' => '$', 'AWG' => 'Afl.', 'AZN' => 'AZN', 'BAM' => 'KM', 'BBD' => '$', 'BDT' => '৳ ', 'BGN' => 'лв.', 'BHD' => '.د.ب', 'BIF' => 'Fr', 'BMD' => '$', 'BND' => '$', 'BOB' => 'Bs.', 'BRL' => 'R$', 'BS... ); -
do_action( 'refpress_db_update_after', $table, $data, $where, $format = null, $where_format = null ); -
do_action( 'refpress_db_update_before', $table, $data, $where, $format = null, $where_format = null ); -
apply_filters( 'refpress_earning_data', [ 'referer_id' => $referer_id, 'traffic_id' => $traffic_id, 'customer_id' => $customer_id, 'customer_ip' => $customer_ip, 'order_id' => $order_id, 'order_status' => $order_status, 'referer_amount' => $referer_amount, 'process_by' => $process_by, 'created_at' => current_time( 'mysql' ), ] ); -
do_action( 'refpress_earnings_pre_update_status', $related_earning, $status, $old_status ); -
do_action( 'refpress_earnings_updated_status', $related_earning, $status, $old_status ); -
apply_filters( 'refpress_form_errors', [], $form ); -
apply_filters( 'refpress_form_errors_html', $output ); -
apply_filters( 'refpress_formatted_price', number_format( $price, $args['decimals'], $args['decimal_separator'], $args['thousand_separator'] ), $price, $args['decimals'], $args['decimal_separator'], $args['thousand_separator'], $original_price ); -
apply_filters( 'refpress_get_cookie_referer_id', $ref_id ); -
apply_filters( 'refpress_get_cookie_traffic_id', $traffic_id ); -
apply_filters( 'refpress_get_countries', $all_countries ); -
apply_filters( 'refpress_get_dashboard_page_id', $lounge_page_id ); -
apply_filters( 'refpress_get_integrations', [ 'woocommerce' => __( 'WooCommerce', 'refpress' ), 'edd' => __( 'Easy Digital Downloads (EDD)', 'refpress' ), ] ); -
apply_filters( 'refpress_get_payout_methods', $methods ); -
apply_filters( 'refpress_get_payouts_default_args', [ 'search_term' => '', 'account_id' => 0, 'start' => 0, 'per_page' => 10, ] ); -
apply_filters( 'refpress_get_price_decimal_separator', refpress_get_setting( 'decimal_separator' ) ); -
apply_filters( 'refpress_get_price_decimals', refpress_get_setting( 'number_of_decimal', 2 ) ); -
apply_filters( 'refpress_get_price_thousand_separator', refpress_get_setting( 'thousand_separator' ) ); -
apply_filters( 'refpress_get_privacy_policy_page_id', 0 < $page_id ? absint( $page_id ) : 0 ); -
apply_filters( 'refpress_get_privacy_policy_text', $text ); -
apply_filters( 'refpress_get_pro_text', $pro_text ); -
apply_filters( 'refpress_get_traffic_default_args', [ 'referer_url' => '', 'campaign' => '', 'ip_address' => '', ] ); -
apply_filters( 'refpress_get_traffics_default_args', [ 'referer_id' => null, 'start' => 0, 'per_page' => 10, 'orderby' => 'created_at', 'order' => 'DESC', 'start_date' => null, 'end_date' => null, ] ); -
apply_filters( 'refpress_has_valid_referer_default_args', [ 'email' => null, 'order_id' => 0, 'order_processed_by' => null, ] ); -
apply_filters( 'refpress_join_promote_earn_image_src', REFPRESS_URL . 'public/images/join-promote-earn.png' ); -
apply_filters( 'refpress_load_select2', $load_select2 ); -
apply_filters( 'refpress_localize_object', $strings ); -
apply_filters( 'refpress_login_credentials', $creds ); -
do_action( 'refpress_login_failed' ); -
apply_filters( 'refpress_login_form_args', $args ); -
do_action( 'refpress_login_form_end' ); -
do_action( 'refpress_login_form_middle' ); -
do_action( 'refpress_login_form_start' ); -
apply_filters( 'refpress_login_redirect_url', refpress_get_input_text( 'redirect_to' ) ); -
apply_filters( 'refpress_lostpassword_url', wp_lostpassword_url() ); -
do_action( 'refpress_new_account_after', $user_id, $account_id ); -
do_action( 'refpress_new_account_before', $user_id ); -
apply_filters( 'refpress_pay_to_referer_data', [ 'referer_id' => $refpress_account_id, 'wp_user_id' => $account->user_id, 'amount' => $pay_amount, 'status' => 'success', 'payout_method_id' => $payout_method, 'payout_method_data' => $method_data, 'created_at' => current_time( 'mysql' ), ] ); -
do_action( 'refpress_payout_after', $pay_data ); -
apply_filters( 'refpress_pending_account_count', $count ); -
apply_filters( 'refpress_price', $return, $price, $args, $unformatted_price, $original_price ); -
apply_filters( 'refpress_price_args', wp_parse_args( $args, [ 'currency' => '', 'decimal_separator' => refpress_get_price_decimal_separator(), 'thousand_separator' => refpress_get_price_thousand_separator(), 'decimals' => refpress_get_price_decimals(), 'price_format' => refpress_get_price_format(), ] ) ); -
apply_filters( 'refpress_price_format', $format, $position ); -
apply_filters( 'refpress_raw_price', $negative ? $price * - 1 : $price, $original_price ); -
apply_filters( 'refpress_referer_valid_earning', true, $earning_data ); -
apply_filters( 'refpress_referral_url_param', $param ); -
apply_filters( 'refpress_render_account_page', $output ); -
apply_filters( 'refpress_sanitize_html', $text ); -
do_action( 'refpress_set_referer_cookie_after' ); -
do_action( 'refpress_set_referer_cookie_before' ); -
apply_filters( 'refpress_settings_args', $settings_fields ); -
apply_filters( 'refpress_settings_commission', [ 'title' => __( 'Commission', 'refpress' ), 'form_fields' => [ 'general' => [ 'title' => __( 'Commission', 'refpress' ), 'description' => __( 'Commission calculation settings', 'refpress' ), 'input_fields' => [ 'commission_rate' => [ 'type' => 'number', 'label' => __( 'Commission Rate', 'refpress' ), 'description' => __( 'The commission rate which your associates will get', 'refpress' ), ], 'c... ); -
apply_filters( 'refpress_settings_general', [ 'title' => __( 'General', 'refpress' ), 'form_fields' => [ 'general' => [ 'title' => __( 'General', 'refpress' ), 'description' => __( 'General Settings', 'refpress' ), 'input_fields' => [ 'delete_on_uninstall' => [ 'type' => 'checkbox', 'title' => __( 'Delete all data during uninstallation', 'refpress' ), 'label' => __( 'Erase upon uninstallation', 'refpress' ), ], 'refpress_dashboard_page_i... ); -
apply_filters( 'refpress_settings_integration', [ 'title' => __( 'Integrations', 'refpress' ), 'form_fields' => [ 'general' => [ 'title' => __( 'Integration', 'refpress' ), 'description' => __( 'All integrations', 'refpress' ), 'input_fields' => [ 'enabled_integrations' => [ 'type' => 'checkbox', 'title' => __( 'Choose available integration', 'refpress' ), 'label' => __( 'Integrations', 'refpress' ), 'description' => __( 'Enable integration ... ); -
do_action( 'refpress_settings_panel_bottom_bar_left' ); -
do_action( 'refpress_settings_panel_top_bar_left' ); -
apply_filters( 'refpress_settings_payouts', [ 'title' => __( 'Payouts', 'refpress' ), 'form_fields' => [ 'general' => [ 'title' => __( 'Payouts', 'refpress' ), 'description' => __( 'Configure payouts for the affiliated users', 'refpress' ), 'input_fields' => [ 'minimum_payout_amount' => [ 'type' => 'text', 'label' => __( 'Minimum Payout Amount', 'refpress' ), 'default' => '50', 'description' => __( 'The minimum amount for the referrer to... ); -
apply_filters( 'refpress_settings_referral', [ 'title' => __( 'Referral', 'refpress' ), 'form_fields' => [ 'referral_settings' => [ 'title' => __( 'Referral Settings', 'refpress' ), 'description' => __( 'Review or set referral settings', 'refpress' ), 'input_fields' => [ 'referral_url_parameter' => [ 'type' => 'text', 'label' => __( 'Referral URL Parameter', 'refpress' ), 'description' => sprintf( __( 'Set referer URL parameter to track t... ); -
apply_filters( 'refpress_template_path', $located, $template_name ); -
apply_filters( 'refpress_user_login_form_validation_rules', [ [ 'field' => 'log', 'label' => __( 'Username or Email Address', 'refpress' ), 'rules' => 'required', ], [ 'field' => 'pwd', 'label' => __( 'Password', 'refpress' ), 'rules' => 'required', ] ] ); -
do_action( 'refpress_user_register_after', $user_id ); -
do_action( 'refpress_user_register_before', $userdata ); -
apply_filters( 'refpress_user_register_data', [ 'user_login' => $user_login, 'user_email' => $email, 'first_name' => $first_name, 'last_name' => $last_name, 'role' => 'subscriber', 'user_pass' => $password, ] ); -
apply_filters( 'refpress_user_register_form_validation_rules', [ [ 'field' => 'full_name', 'label' => __( 'Full Name', 'refpress' ), 'rules' => 'required', ], [ 'field' => 'email', 'label' => __( 'E-Mail', 'refpress' ), 'rules' => 'required|email', 'errors' => [ 'email' => __( 'You must provide a valid %s.', 'refpress' ), ], ], [ 'field' => 'user_login', 'label' => __( 'User Login', 'refpress' ), 'rules' => 'required', ], [ 'field' => 'password', 'label' =... ); -
apply_filters( 'refpress_wc_disabled_specific_product_commission', false, $product_id ); -
do_action( 'refpress_wc_product_panel' ); -
do_action( 'refpress_wc_product_panel_after' ); -
do_action( 'refpress_wc_product_panel_before' ); -
apply_filters( 'refpress_write_log_default_args', [ 'referer_id' => 0, 'referer_wp_user_id' => 0, 'order_id' => 0, 'order_processed_by' => '', 'log_type' => 'UNKNOWN', 'log_text' => '', ] ); -
do_action( 'refpress/account_page/after' ); -
do_action( 'refpress/account_page/before' ); -
do_action( 'refpress/account/wrap/after' ); -
do_action( 'refpress/account/wrap/before' ); -
do_action( 'refpress/run/after' ); -
do_action( 'refpress/run/before' ); -
do_action( 'save_edd_refpress_metabox', $postID );
Generated from RefPress'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: