Created
March 29, 2024 05:42
-
-
Save JarrydLong/2f4eebfa9e1e6e1840e1f47b225093fc to your computer and use it in GitHub Desktop.
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 //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