Skip to content

Instantly share code, notes, and snippets.

@itsjusteileen
Created September 14, 2018 17:49
Show Gist options
  • Select an option

  • Save itsjusteileen/d4cecb2dd1ac4071477e9c511dbb20c8 to your computer and use it in GitHub Desktop.

Select an option

Save itsjusteileen/d4cecb2dd1ac4071477e9c511dbb20c8 to your computer and use it in GitHub Desktop.
PMPro Confirmation Page Template Shortcode
<?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