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
| .entry-header{ | |
| background:#0a4296; | |
| } | |
| .entry-header h2{ | |
| color:white; | |
| padding-top:2%; | |
| } | |
| .pmpro_level-select a{ |
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
| .control-label { | |
| color: lightblue; | |
| font-size: 20px; | |
| } |
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
| #!/bin/bash -e | |
| # -------------------------------------------------------- | |
| # Generate iOS Launch items from a single image | |
| # (c) 2017 ePi Rational, Inc. | |
| # | |
| # Modified from original script which generated app icons for iOS, | |
| # originally written by | |
| # Ben Clayton, Calvium Ltd. | |
| # https://gist.github.com/benvium/2be6d673aa9ac284bb8a |
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
| /** | |
| * Hide a membership level from the levels array if the user currently has a membership level. This is great to hide trial levels if the user has an active level. | |
| * Add this code to your PMPro Customizations plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
| */ | |
| function remove_free_trial_if_user_has_level( $level ){ | |
| if( pmpro_hasMembershipLevel() ){ | |
| unset( $level['1'] ); //change the level ID to the level you would like to hide. |
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 | |
| /** | |
| * This code is used to change 'Choose your Payment Method' text in Paid Memberships Pro. | |
| * Add the function into your PMPro Customizations plugin - http://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
| */ | |
| function change_choose_your_payment( $translated_text, $text, $domain ) { | |
| switch ( $translated_text ) { | |
| case 'Choose your Payment Method' : |
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 the following code to your PMPro Customization - http://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
| * Description: Redirect users with certain levels away from certain pages in Paid Memberships Pro | |
| */ | |
| // Redirect free members away from chat. | |
| function my_pmpro_template_redirect() { | |
| //Don't break if PMPro isn't active. |
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
| @media screen and (min-width:769px){ | |
| .sbHolder { | |
| width: 200px; | |
| left: 15em; | |
| top: -2em; | |
| } | |
| } |
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
| import asyncio | |
| loop = asyncio.get_event_loop() | |
| async def hello(): | |
| await asyncio.sleep(3) | |
| print('Hello!') | |
| if __name__ == '__main__': | |
| loop.run_until_complete(hello()) | |
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 the code below to your PMPro Customizations plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
| function not_logged_in_pmpro_user_msg( $text ){ | |
| if( is_page('page-slug') ){ //change page slug to your own | |
| $text = 'My own message goes here'; // Change this text to display your own message |
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 | |
| /* | |
| Don't allow early renewals for certain levels. | |
| (Don't allow users to checkout for the same level in PMPro if date is more than 3 months) | |
| Change the level IDs in the $pmpro_non_renewal_levels global array, then | |
| add this code to your active theme's functions.php or a custom plugins. | |
| Add the following code to your PMPro Customizations plugin -> http://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ |