Created
September 14, 2018 17:49
-
-
Save itsjusteileen/d4cecb2dd1ac4071477e9c511dbb20c8 to your computer and use it in GitHub Desktop.
PMPro Confirmation Page Template Shortcode
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 | |
| /** | |
| * Add to PMPro Customizations plugin. Be sure not to include the opening php tag in line 1. | |
| * | |
| * Add this your customizations plugin to update text on the PMPro Confirmation Page Template. | |
| * https://www.paidmembershipspro.com/documentation/templates/customizing-via-a-custom-plugin/ | |
| */ | |
| function my_pmpro_pages_shortcode_confirmation($content) | |
| { | |
| ob_start(); | |
| include(plugin_dir_path(__FILE__) . "templates/confirmation.php"); | |
| $temp_content = ob_get_contents(); | |
| ob_end_clean(); | |
| return $temp_content; | |
| } | |
| add_filter("pmpro_pages_shortcode_confirmation", "my_pmpro_pages_shortcode_confirmation"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment