Modify link address in membership account page [PMPro]

I wanted to change the default link address of “change password” & “edit profile” to other page/link address and I actually manage to do it by modifying the shortcodes -> pmpro_account.php

However, I do not want this modification to disappear when the plugin goes through an update. So I tried to use PMPro Customizations plugin to do it. I’ve created a folder named “templates”. I’ve copied the original pmpro_account.php into templates folder and changed the value of the link address for “change password” & “edit profile”

Then i edited the pmpro-customizations.php to as below:

<?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
function my_pmpro_shortcode_account($content)
{
ob_start();
include(plugin_dir_path(__FILE__) . “templates/pmpro_account.php”);
$temp_content = ob_get_contents();
ob_end_clean();
return $temp_content;
}
add_filter(“pmpro_shortcode_account”, “my_pmpro_shortcode_account”);

My problem is why this customization plugin is not overriding the original one? Please help

Read more here:: Modify link address in membership account page [PMPro]

Leave a Reply

Your email address will not be published. Required fields are marked *