Below is a list of hooks that are available in the Affiliates Manager plugin:
wpam_front_end_registration_form_submitted
This hook executes after an affiliate registers for an account from the front end of your website.
Here is an example of how to use this hook:
add_action('wpam_front_end_registration_form_submitted', 'after_registration_callback', 10, 2); function after_registration_callback ($model, $request) { //Do stuff }
wpam_after_main_admin_menu
This hook executes after the affiliate manager plugin menu is rendered. You can use this hook to add new menu (for your addons).
wpam_affiliate_application_approved
This hook executes after an affiliate application is approved.
Here is an example of how to use this hook:
add_action('wpam_affiliate_application_approved', 'affiliate_application_approved_callback'); function affiliate_application_approved_callback($affiliateId) { //Do stuff }
wpam_affiliate_application_declined
This hook executes after an affiliate application is declined.
Here is an example of how to use this hook:
add_action('wpam_affiliate_application_declined', 'affiliate_application_declined_callback'); function affiliate_application_declined_callback($affiliateId) { //Do stuff }
wpam_affiliate_application_blocked
This hook executes after an affiliate application is blocked.
Here is an example of how to use this hook:
add_action('wpam_affiliate_application_blocked', 'affiliate_application_blocked_callback'); function affiliate_application_blocked_callback($affiliateId) { //Do stuff }
wpam_affiliate_application_activated
This hook executes after an affiliate application is activated.
Here is an example of how to use this hook:
add_action('wpam_affiliate_application_activated', 'affiliate_application_activated_callback'); function affiliate_application_activated_callback($affiliateId) { //Do stuff }
wpam_affiliate_application_deactivated
This hook executes after an affiliate application is deactivated.
Here is an example of how to use this hook:
add_action('wpam_affiliate_application_deactivated', 'affiliate_application_deactivated_callback'); function affiliate_application_deactivated_callback($affiliateId) { //Do stuff }
wpam_affiliate_commission_added
This hook executes after a commission is rewarded to an affiliate.
Here is an example of how to use this hook:
add_action('wpam_affiliate_commission_added', 'affiliate_commission_added_callback'); function affiliate_commission_added_callback($data) { //Do stuff }