Created
November 10, 2021 19:52
-
-
Save sc0ttkclark/0828f0b4f30f8cae728c04dd37dc8fca to your computer and use it in GitHub Desktop.
Fix LearnPress PMPro Add On compatibility issue with Email Template overrides.
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 | |
/** | |
* Fix LearnPress PMPro Add On compatibility issue with Email Template overrides. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
function my_pmpro_learnpress_workaround() { | |
add_filter( 'learn_press_pmpro_email_custom_template_path', '__return_empty_string' ); | |
} | |
add_action( 'init', 'my_pmpro_learnpress_workaround' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment