Last active
June 23, 2023 14:14
-
-
Save strangerstudios/fcd7ff7ef250e54023b8fb82a966b81a to your computer and use it in GitHub Desktop.
Tell PMPro to look in the pages folder of this plugin for PMPro page templates.
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 | |
/* | |
Tell PMPro to look in the pages directory of this plugin for PMPro page templates. | |
Add this code to a custom plugin. | |
Make sure that there is a /pages/ directory in the plugin directory with your templates in it. | |
*/ | |
function my_pmpro_pages_custom_template_path($default_templates) { | |
$default_templates[] = dirname(__FILE__) . "/pages/"; | |
return $default_templates; | |
} | |
add_filter('pmpro_pages_custom_template_path', 'my_pmpro_pages_custom_template_path'); |
Hi mr Coleman. How are you? i spossible to talk witk you for news features of paid memberships pro? link? website? where?
I m need a new feature in Paid memberships Pro when a new user is registration process start. Please, where send you this explanation details.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This gist example needs to include the filename in the template string. We can't edit these old gists, but I forked it here: https://gist.github.com/ideadude/5758d48d5768876313a316ff4873b620