Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Change login url in WordPress emails.
<?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
You can’t perform that action at this time.