FlyAffiliate 1.0.2 has 36 actions and 48 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 FlyAffiliate fires an action
add_action( 'flyaffiliate_commission_created', function( $commission ) {
// Your code runs here.
}, 10, 1 );
// Change a value FlyAffiliate is about to use
add_filter( 'flyaffiliate_activation_email', function( $value, $affiliate ) {
// 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
-
/** * Fires after a commission is created, from any source. */ do_action( 'flyaffiliate_commission_created', $commission ); -
/** * Fires when a commission's status changes. */ do_action( 'flyaffiliate_commission_status_changed', $commission, $status, $from ); -
/** * Fires when an automatic payout method fails to start sending a payout. */ do_action( 'flyaffiliate_payout_method_failed', $id, $batch_key, $e ); -
/** * Filters the activation email before it is sent. */ apply_filters( 'flyaffiliate_activation_email', [ 'to' => $user->user_email, 'subject' => $subject, 'message' => $message, 'headers' => [], ], $affiliate ); -
/** * Filters how long an activation link stays usable. */ apply_filters( 'flyaffiliate_activation_key_lifetime', WEEK_IN_SECONDS ); -
/** * Filters the capability required to administer FlyAffiliate. */ apply_filters( 'flyaffiliate_admin_capability', 'manage_options' ); -
/** * Filters the FlyAffiliate admin notices for the current request. */ apply_filters( 'flyaffiliate_admin_notices', [] ); -
/** * Filters the data exposed to the FlyAffiliate admin app as * `window.flyaffiliate`. */ apply_filters( 'flyaffiliate_admin_script_data', $data ); -
/** * Fires after an affiliate is created. */ do_action( 'flyaffiliate_affiliate_created', $affiliate ); -
/** * Fires after an affiliate is deleted. */ do_action( 'flyaffiliate_affiliate_deleted', $affiliate_id, $snapshot ); -
/** * Fires after an affiliate registers through the public form. */ do_action( 'flyaffiliate_affiliate_registered', $affiliate, $send_email ); -
/** * Fires when an affiliate's status changes. */ do_action( 'flyaffiliate_affiliate_status_changed', $affiliate, $new_status, $previous_status ); -
/** * Fires after an affiliate is updated. */ do_action( 'flyaffiliate_affiliate_updated', $affiliate ); -
/** * Fires after settings are stored. */ do_action( 'flyaffiliate_after_save_settings', $sanitized, $scope_id, $this->repository->all() ); -
/** * Fires after a FlyAffiliate template is rendered. */ do_action( 'flyaffiliate_after_template', $template_name, $args ); -
/** * Filters the page of WooCommerce's admin app the "Affiliate Commission" box * links to. */ apply_filters( 'flyaffiliate_analytics_report_path', current_user_can( flyaffiliate_admin_capability() ) ? self::REPORT_PATH : '' ); -
/** * Filters the vendor the "Affiliate Commission" indicator is narrowed to. */ apply_filters( 'flyaffiliate_analytics_vendor_id', null ); -
/** * Filters whether a referred order is attributed at all. */ apply_filters( 'flyaffiliate_attribute_order', true, $order, $affiliate ); -
/** * Filters the origins open to a new commission. */ apply_filters( 'flyaffiliate_available_commission_sources', [ self::SOURCE_MANUAL => self::get_sources()[ self::SOURCE_MANUAL ] ] ); -
/** * Fires above the admin app: FlyAffiliate's own notices print here. */ do_action( 'flyaffiliate_before_admin_app' ); -
/** * Fires before settings are stored. */ do_action( 'flyaffiliate_before_save_settings', $sanitized, $scope_id ); -
/** * Fires before a FlyAffiliate template is rendered. */ do_action( 'flyaffiliate_before_template', $template_name, $args ); -
/** * Fires after a commission is deleted. */ do_action( 'flyaffiliate_commission_deleted', $deleted ); -
/** * Filters the hold period of one commission, as it is created. */ apply_filters( 'flyaffiliate_commission_hold_days', $hold_days, $commission ); -
/** * Filters the note shown beside a commission. */ apply_filters( 'flyaffiliate_commission_note', '', $item, $audience ); -
/** * Filters the final rate applied to a product's sale. */ apply_filters( 'flyaffiliate_commission_rate', $rate, $product_id, $vendor_id ); -
/** * Fires after an admin edits a commission's fields. */ do_action( 'flyaffiliate_commission_updated', $commission ); -
/** * Filters the currency FlyAffiliate shows amounts in. */ apply_filters( 'flyaffiliate_currency', $code ); -
/** * Filters the decimal places of a currency. */ apply_filters( 'flyaffiliate_currency_decimals', $decimals, $code ); -
/** * Filters the data exposed to the affiliate dashboard as * `window.flyaffiliate`. */ apply_filters( 'flyaffiliate_dashboard_script_data', $data ); -
/** * Fires after FlyAffiliate has finished installing or repairing itself. */ do_action( 'flyaffiliate_installed' ); -
/** * Filters whether FlyAffiliate Pro is running. Pro returns true. */ apply_filters( 'flyaffiliate_is_pro_active', false ); -
/** * Fires once FlyAffiliate has loaded and its hooks are attached. */ do_action( 'flyaffiliate_loaded' ); -
/** * Filters the resolved path of a FlyAffiliate template. */ apply_filters( 'flyaffiliate_locate_template', $template, $template_name ); -
/** * Filters the maximum rate a product's sale can earn. */ apply_filters( 'flyaffiliate_max_rate', (float) flyaffiliate_get_option( 'max_rate', 50 ), $product_id, $vendor_id ); -
/** * Fires after an order is attributed to an affiliate. */ do_action( 'flyaffiliate_order_attributed', $order, $affiliate, $created ); -
/** * Filters the vendor an order item belongs to. */ apply_filters( 'flyaffiliate_order_item_vendor_id', 0, $item, $order ); -
/** * Filters the order statuses under which a commission becomes unpaid. */ apply_filters( 'flyaffiliate_paid_order_statuses', self::PAID_STATUSES ); -
/** * Fires after a whole payout batch is recorded. */ do_action( 'flyaffiliate_payout_batch_created', $batch_key, $payouts ); -
/** * Fires after a commission is taken out of an unpaid payment. */ do_action( 'flyaffiliate_payout_commission_removed', $payout, $commission ); -
/** * Fires after an affiliate's payment is created, unpaid, with its commissions * attached. */ do_action( 'flyaffiliate_payout_created', $payout, $row['commissions'] ); -
/** * Fires after an unpaid payment is deleted and its commissions detached. */ do_action( 'flyaffiliate_payout_deleted', $payout_id, $snapshot ); -
/** * Filters whether a payment is locked against changes by hand. */ apply_filters( 'flyaffiliate_payout_locked', '' !== $reason, $payout, $reason ); -
/** * Filters the payout methods. */ apply_filters( 'flyaffiliate_payout_methods', [ $manual->get_id() => $manual ] ); -
/** * Fires after a payment is marked paid and its commissions with it. */ do_action( 'flyaffiliate_payout_paid', $payout ); -
/** * Fires after a payment is handed to its method to be sent again. */ do_action( 'flyaffiliate_payout_retried', $payout ); -
/** * Filters a payout's summary, as its page and the payouts list show it. */ apply_filters( 'flyaffiliate_payout_summary', $summary, $payouts, $states ); -
/** * Fires after a payment is marked unpaid again and its commissions with it. */ do_action( 'flyaffiliate_payout_unpaid', $payout ); -
/** * Filters the Pro extensions the Extensions page shows while Pro is not * active. */ apply_filters( 'flyaffiliate_pro_extensions_preview', $extensions ); -
/** * Filters where Upgrade to FlyAffiliate Pro leads. */ apply_filters( 'flyaffiliate_pro_upgrade_url', 'https://flyaffiliate.co/' ); -
/** * Fires after an affiliate saves a referral link. */ do_action( 'flyaffiliate_referral_link_created', $link, $affiliate_id ); -
/** * Fires after a referral link is removed from its affiliate's list. */ do_action( 'flyaffiliate_referral_link_deleted', $link_id, $snapshot ); -
/** * Filters whether affiliates may register themselves. */ apply_filters( 'flyaffiliate_registration_enabled', flyaffiliate_option_enabled( 'registration_enabled' ) ); -
/** * Filters the query variables the referral variable cannot be. */ apply_filters( 'flyaffiliate_reserved_query_vars', $reserved ); -
/** * Filters the FlyAffiliate REST controllers. */ apply_filters( 'flyaffiliate_rest_controllers', $controllers ); -
/** * Filters the settings schema the REST API returns. */ apply_filters( 'flyaffiliate_rest_settings_schema', $this->settings->get_registry()->get_public_schema() ); -
/** * Filters the scripts FlyAffiliate registers. */ apply_filters( 'flyaffiliate_scripts', $scripts ); -
/** * Fires after settings changed. */ do_action( 'flyaffiliate_settings_changed', $changed, $merged ); -
/** * Filters the slice about to be merged into the settings option. */ apply_filters( 'flyaffiliate_settings_pre_save', $slice, $current ); -
/** * Filters the sanitized value of a field variant this class does not know. */ apply_filters( 'flyaffiliate_settings_sanitize_field', is_string( $value ) ? sanitize_text_field( $value ) : $value, $field, $variant ); -
/** * Filters the settings schema. */ apply_filters( 'flyaffiliate_settings_schema', $elements ); -
/** * Filters a field's validation errors. */ apply_filters( 'flyaffiliate_settings_validate_field', $errors, $field, $value, $values ); -
/** * Filters the FlyAffiliate shortcodes. */ apply_filters( 'flyaffiliate_shortcodes', $shortcodes ); -
/** * Filters the stylesheets FlyAffiliate registers. */ apply_filters( 'flyaffiliate_styles', $styles ); -
/** * Filters the theme directory FlyAffiliate templates are overridden from. */ apply_filters( 'flyaffiliate_template_path', 'flyaffiliate/' ); -
/** * Filters whether this request is tracked as a visit. */ apply_filters( 'flyaffiliate_track_visit', true, $affiliate ); -
/** * Fires after every pending FlyAffiliate upgrader has run. */ do_action( 'flyaffiliate_upgrade_complete', $installed, Installer::DB_VERSION ); -
/** * Fires after one FlyAffiliate upgrader has run. */ do_action( 'flyaffiliate_upgraded_to', $version ); -
/** * Filters the list of FlyAffiliate schema upgraders. */ apply_filters( 'flyaffiliate_upgraders', [] ); -
/** * Filters the rate a vendor's program applies, before the default. */ apply_filters( 'flyaffiliate_vendor_rate', null, $vendor_id, $product_id ); -
/** * Fires after a referral visit is recorded. */ do_action( 'flyaffiliate_visit_tracked', $visit, $affiliate ); -
/** * Filters the welcome email before it is sent. */ apply_filters( 'flyaffiliate_welcome_email', [ 'to' => $user->user_email, 'subject' => $subject, 'message' => $message, 'headers' => [], ], $affiliate ); -
apply_filters( 'appsero_is_local', $is_local ); -
apply_filters( "{$this->client->slug}_tracker_data", $data ); -
do_action( "{$this->client->slug}_tracker_optin", $this->get_tracking_data() ); -
do_action( "{$this->client->slug}_tracker_optout" ); -
do_action( "{$this->client->slug}_uninstall_reason_submitted", $data ); -
do_action( 'after_appsero_license_section' ); -
apply_filters( 'appsero_custom_deactivation_reasons', [], $this->client ); -
apply_filters( 'appsero_endpoint', 'https://api.appsero.com' ); -
do_action( 'before_appsero_license_section' ); -
woocommerce_analytics_excluded_order_statuses
filter Used by 11 plugins → Copy link Customise this hookapply_filters( 'woocommerce_analytics_excluded_order_statuses', array_merge( [ 'auto-draft', 'trash' ], $picked ) );
Generated from FlyAffiliate'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: