Created
September 5, 2019 10:55
-
-
Save kimcoleman/3c8c4a4299094df15a0c06f8ce9f86b9 to your computer and use it in GitHub Desktop.
Use a custom Membership Account Page template with PMPro.
This file contains 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 | |
/** | |
* 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' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
An update to this recipe can be found here: https://gist.github.com/ideadude/1d17a6811ce41efe118075db8cc1fb2d