Skip to content

Instantly share code, notes, and snippets.

@ipokkel
Created March 13, 2019 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ipokkel/c5241eac8ad9411fdb5e58499e57b66f to your computer and use it in GitHub Desktop.
Save ipokkel/c5241eac8ad9411fdb5e58499e57b66f to your computer and use it in GitHub Desktop.
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