Created
March 13, 2019 13:26
-
-
Save ipokkel/c5241eac8ad9411fdb5e58499e57b66f to your computer and use it in GitHub Desktop.
Change login url in WordPress emails.
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 | |
/* | |
Plugin Name: PMPro Customizations | |
Plugin URI: https://www.paidmembershipspro.com/wp/pmpro-customizations/ | |
Description: Customizations for my Paid Memberships Pro Setup | |
Version: .1 | |
Author: Paid Memberships Pro | |
Author URI: https://www.paidmembershipspro.com | |
*/ | |
//Now start placing your customization code below this line | |
// Change login url in WordPress emails | |
function change_email_login_link($data, $email) | |
{ | |
$data['login_link'] = '<a href = "https://example.com/my-custom-login-page/">https://example.com/my-custom-login-page/</a>'; | |
return $data; | |
} | |
add_filter('pmpro_email_data', 'change_email_login_link', 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment