Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JarrydLong/2f4eebfa9e1e6e1840e1f47b225093fc to your computer and use it in GitHub Desktop.
Save JarrydLong/2f4eebfa9e1e6e1840e1f47b225093fc to your computer and use it in GitHub Desktop.
<?php //do not copy
function my_pmpro_user_page_purchase_postdata_content($postdata, $user, $level){
if( $level->ID == 1 || $level->ID == 3 ) {
//Horizon
$postdata['post_content'] = 'THIS IS HORIZON';
} else if( $level->ID == 2 || $level->ID == 4 ) {
//Galaxy
$postdata['post_content'] = 'THIS IS GALAXY';
}
return $postdata;
}
add_filter("pmpro_user_page_purchase_postdata", "my_pmpro_user_page_purchase_postdata_content", 10, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment