Affiliates Manager icon
Ads & Monetisation

Affiliates Manager hooks reference

  • By wp.insider
  • v2.9.57
  • Updated

Affiliates Manager 2.9.57 has 9 actions and 15 filters, read directly from its source code on Nov 17, 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 Affiliates Manager fires an action
add_action( 'wpam_affiliate_application_activated', function( $affiliateId ) {
	// Your code runs here.
}, 10, 1 );

// Change a value Affiliates Manager is about to use
add_filter( 'user_registration_email', function( $userEmail ) {
	// Change $userEmail here.
	return $userEmail;
}, 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

  • source/Util/UserHandler.php line 19 · used in 2 places
    apply_filters( 'user_registration_email', $userEmail );
  • source/Pages/TemplateResponse.php line 30 · used in 2 places
    apply_filters( 'wpam_load_template_files', $template_files, $template_name );
  • classes/ListTable.php line 132
    apply_filters( "bulk_actions-{$screen->id}", $this->_actions );
  • classes/ListTable.php line 339
    apply_filters( "manage_{$screen->id}_sortable_columns", $this->get_sortable_columns() );
  • classes/ListTable.php line 109
    apply_filters( "views_{$screen->id}", $views );
  • source/display_functions.php line 43
    apply_filters( 'wpam_aff_countries', $countries );
  • source/Util/JsonHandler.php line 139
    do_action( 'wpam_affiliate_application_activated', $affiliateId );
  • source/Util/JsonHandler.php line 39
    do_action( 'wpam_affiliate_application_approved', $affiliateId );
  • source/Util/JsonHandler.php line 104
    do_action( 'wpam_affiliate_application_blocked', $affiliateId );
  • source/Util/JsonHandler.php line 167
    do_action( 'wpam_affiliate_application_deactivated', $affiliateId );
  • source/Util/JsonHandler.php line 74
    do_action( 'wpam_affiliate_application_declined', $affiliateId );
  • classes/CommissionTracking.php line 118
    do_action( 'wpam_affiliate_commission_added', $data );
  • source/Plugin.php line 863
    do_action( 'wpam_after_main_admin_menu', $menu_parent_slug );
  • html/affiliate_creative_list.php line 89
    apply_filters( 'wpam_after_referral_url_generator', $custom_content, $aff_id );
  • html/affiliate_register_form.php line 102
    apply_filters( 'wpam_before_registration_submit_button', '' );
  • classes/CommissionTracking.php line 47
    apply_filters( 'wpam_commission_tracking_override', $override, $affiliate, $args );
  • classes/CommissionTracking.php line 88
    apply_filters( 'wpam_credit_amount', $creditAmount, $args );
  • source/Plugin.php line 330
    apply_filters( 'wpam_custom_input', $wpam_id_var );
  • source/Plugin.php line 1173
    apply_filters( 'wpam_export_aff_commission_columns', $export_keys );
  • source/Plugin.php line 1154
    apply_filters( 'wpam_export_columns', $export_keys );
  • source/Pages/AffiliatesHome.php line 398
    do_action( 'wpam_front_end_affiliate_profile_updated', $affiliate, $request );
  • source/Pages/AffiliatesRegister.php line 55
    do_action( 'wpam_front_end_registration_form_submitted', $model, $request );
  • source/Pages/AffiliatesRegister.php line 45
    apply_filters( 'wpam_validate_registration_form_submission', '', $request );
  • source/Plugin.php line 544
    apply_filters( 'wpam_woo_override_refkey', $wpam_refkey, $order );

Generated from Affiliates Manager's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: