Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save strangerstudios/fcd7ff7ef250e54023b8fb82a966b81a to your computer and use it in GitHub Desktop.
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.
<?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');
@ideadude
Copy link

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

@rseales
Copy link

rseales commented Jun 23, 2023

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