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
| .pmpro-checkout .pmpro_form { | |
| display: -ms-grid; | |
| display: grid; | |
| grid-column-gap: 1em; | |
| -ms-grid-columns: 1 1em 1; | |
| grid-template-columns: 1 1; | |
| grid-template-areas: | |
| "message message" | |
| "pricing pricing" | |
| "user address" |
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
| .pmpro-checkout .pmpro_form #pmpro_user_fields { | |
| float: left; | |
| width: 48%; | |
| } | |
| .pmpro-checkout .pmpro_form #pmpro_billing_address_fields { | |
| float: right; | |
| width: 48%; | |
| } |
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 | |
| /** | |
| * Remove the "Membership Level" Edit Section from User Profile Edit | |
| * if viewing the Profile from the frontend using a plugin like | |
| * Theme My Login's Profiles Module. | |
| * | |
| */ | |
| function remove_membership_level_profile_fields_on_frontend() { | |
| if ( ! is_admin() ) { | |
| remove_action( 'show_user_profile', 'pmpro_membership_level_profile_fields' ); |
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 a new order status 'chargeback' to your PMPro site. | |
| * | |
| */ | |
| function add_chargeback_custom_order_status( $statuses ) { | |
| $statuses[] = 'chargeback'; | |
| return $statuses; | |
| } | |
| add_filter( 'pmpro_order_statuses', 'add_chargeback_custom_order_status' ); |
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
| /** | |
| * Retroactively assign a user to a Parent account when using the Sponsored Members Add On. | |
| * Enter the user ID of parent account in the "Assign to Parent Account" on the "Edit Profile" screen. | |
| * | |
| * Note: The user's active Membership Level must be the correct "Child" level for that Parent/Child relationship. | |
| * | |
| */ | |
| function pmprosm_assign_child_members( $profileuser ) { | |
| if ( function_exists( 'pmprosm_getSponsor' ) && current_user_can( 'edit_users' ) ) { |
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 | |
| /** | |
| * Call to http://yoursite.com/?verify=email@domain.com&secret=SOMESECRETHERE to check the membership level of a user. | |
| */ | |
| function my_init_pmpro_mini_api() { | |
| if ( function_exists( 'pmpro_getMembershipLevelForUser' ) && | |
| ! empty( $_REQUEST[ 'verify' ] ) && | |
| ! empty( $_REQUEST[ 'secret' ] ) ) | |
| { | |
| if ( $_REQUEST[ 'secret' ] != 'SOMESECRETHERE' ) { |
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 Website and Biographical Info to Membership Checkout | |
| */ | |
| function my_default_wp_user_checkout_fields() { | |
| if ( class_exists( 'PMProRH_Field') ) { | |
| pmprorh_add_checkout_box( 'additional', 'Additional Information' ); | |
| $fields = array(); | |
| //user_url field |
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
| <!-- Place this content in the primary post editor, change "Page Attributes > Template" to "Fluid Width" --> | |
| [memberlite_banner background="body"][pmpro_advanced_levels back_link="0" highlight="2" layout="3col" levels="1,2,3"] | |
| [/memberlite_banner][memberlite_banner background="secondary"] | |
| <h1 class="text-center">Advice and Tips for Dog Lovers Everywhere.</h1> | |
| <h3 class="text-center">Pupperino borkf ur givin me a spook heck, most angery pupper I have ever seen borkf corgo shooberino, snoot borking doggo. stop it fren.</h3> | |
| <hr> | |
| [memberlite_recent_posts] | |
| <div class="text-center">[memberlite_btn href="/blog/" style="primary" text="View More Posts" icon="chevron-right"]</div> | |
| [/memberlite_banner] |
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 Contact Form 7 to the Profile page when using the Member Directory and Profiles Add On for Paid Memberships Pro. | |
| * Update line 36 with the correct CF7 shortcode for your desired form to display. | |
| * Add a hidden field to your form: "[hidden send-to-email default:shortcode_attr]". | |
| * Set the "To" field of the Contact Form to "[send-to-email]". | |
| * | |
| */ | |
| // Allow custom shortcode attribute for "send-to-email". |
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 | |
| /** | |
| * Example of how to add links to the Member Links list on the Membership Account page. | |
| * | |
| */ | |
| // Add links to the top of the list | |
| function my_pmpro_member_links_top() { | |
| //Add the level IDs here | |
| if ( pmpro_hasMembershipLevel( array(1,2,3 ) ) ) { |