Created
April 12, 2019 10:14
-
-
Save andrewlimaza/f4eb4285bb0431506e155d72f68df2ef to your computer and use it in GitHub Desktop.
Default checkout level if no level parameter
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 | |
| /** | |
| * Set default checkout level if none is specified. | |
| * Add this code to your PMPro Customizations Plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
| */ | |
| function my_pmpro_set_default_level( $level ) { | |
| return 1; // Change the level ID | |
| } | |
| add_filter( 'pmpro_default_level', 'my_pmpro_set_default_level' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment