Skip to content

Instantly share code, notes, and snippets.

@kimcoleman
Created September 5, 2019 10:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kimcoleman/3c8c4a4299094df15a0c06f8ce9f86b9 to your computer and use it in GitHub Desktop.
Save kimcoleman/3c8c4a4299094df15a0c06f8ce9f86b9 to your computer and use it in GitHub Desktop.
Use a custom Membership Account Page template with PMPro.
<?php
/**
* Use a custom Membership Account Page template with PMPro.
*
*/
function my_pmpro_pages_shortcode_account( $content ) {
ob_start();
include( plugin_dir_path(__FILE__) . 'templates/account.php' );
$temp_content = ob_get_contents();
ob_end_clean();
return $temp_content;
}
add_filter( 'pmpro_pages_shortcode_account', 'my_pmpro_pages_shortcode_account' );
@kimcoleman
Copy link
Author

An update to this recipe can be found here: https://gist.github.com/ideadude/1d17a6811ce41efe118075db8cc1fb2d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment