Skip to content

Instantly share code, notes, and snippets.

@amdrew
Created November 20, 2014 21:29
Show Gist options
  • Select an option

  • Save amdrew/cc3c3713165feec5aa91 to your computer and use it in GitHub Desktop.

Select an option

Save amdrew/cc3c3713165feec5aa91 to your computer and use it in GitHub Desktop.
AffiliateWP - Edit the application accepted email
<?php
/**
* Edit the application accepted email
*/
function affwp_custom_application_accepted_email( $message, $args ) {
$message = sprintf( __( "Congratulations %s!\n\n", "affiliate-wp" ), affiliate_wp()->affiliates->get_affiliate_name( $args['affiliate_id'] ) );
$message .= sprintf( __( "Your affiliate application on %s has been accepted!\n\n", "affiliate-wp" ), home_url() );
$message .= sprintf( __( "Log into your affiliate area at %s\n\n", "affiliate-wp" ), get_permalink( affiliate_wp()->settings->get( 'affiliates_page' ) ) );
return $message;
}
add_filter( 'affwp_application_accepted_email', 'affwp_custom_application_accepted_email', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment