Created
November 20, 2014 21:29
-
-
Save amdrew/cc3c3713165feec5aa91 to your computer and use it in GitHub Desktop.
AffiliateWP - Edit the application accepted email
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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