Membership 2 Pro - Replacing Invoice Template

Hi All,

Just sharing this bit of code for replacing the Single Invoice Template:

add_filter('ms_controller_plugin_invoice_template','my_invoice_template');
function my_invoice_template($str){ return plugin_dir_path( __FILE__ ).'/views/single-invoice.php';	}

I'm sure if you search for the other templates you will find the right hooks to replace.

All the best.
Ian