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
| <a href="https://azcomcommercial.com" target="_blank" style="text-decoration:none; border:0;"> | |
| <img | |
| src="https://azcomcommercial.com/jennifer-azzopardi.png" | |
| alt="Jennifer Azzopardi" | |
| border="0" | |
| style="display:block; border:0; outline:none; text-decoration:none;" | |
| > | |
| </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
| /* | |
| Requires Paid Memberships Pro (https://wordpress.org/plugins/paid-memberships-pro/) and | |
| WooCommerce (https://wordpress.org/plugins/woocommerce/) | |
| Update line 13 with the membership level IDs to allow into the store. | |
| */ | |
| function my_pmpro_members_only_woocommerce_shop() { | |
| global $current_user; | |
| if ( | |
| ( |
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
| /* | |
| Don't show confirm password or email fields on the checkout page. | |
| Add this code to your active theme's functions.php or a custom plugin. | |
| */ | |
| add_filter("pmpro_checkout_confirm_password", "__return_false"); | |
| add_filter("pmpro_checkout_confirm_email", "__return_false"); |
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
| <div class="collection__main"> | |
| <!-- COLLECTION SIDEBAR --> | |
| {%- capture categories -%} | |
| {%- for tag in collections[collection.handle].tags -%} | |
| {%- if tag contains 'categories' -%} | |
| {%- assign tag_patterns = tag | split: '_' -%} | |
| <li class="collection-sidebar__filter-item main-filter" data-tag="{{ tag | handle }}">{{ tag_patterns[1] }}</li> | |
| {%- endif -%} | |
| {%- endfor -%} |
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
| /* --------- Adds custom fields using filters. ------ | |
| The below custom fields shows various types one can use. | |
| It is then displayed in the backend Order Details page and in admin and customer e-mails. | |
| Checkboxes by default result only show the number 1 when clicked. I have added code so that when the a checkbox is clicked it will | |
| show text such as On and Yes. Checkbox is also pre-selected. | |
| Tutorial: https://easywebdesigntutorials.com/woocommerce-modifying-the-checkout-page/ | |
| */ | |
| // Initial inspiration: https://businessbloomer.com/woocommerce-add-shipping-phone-checkout/ | |
| // My Custom 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 the function below to your PMPro Customizations plugin - https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
| function filter_my_memberlist_export_columns( $columns ){ | |
| /** | |
| * Comment out which columns you don't want to be exported to your memberlist. | |
| */ | |
| $columns = array( |
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
| /* | |
| Change wording in PMPro MailChimp Opt In Box | |
| Add this code to your active theme's functions.php or a custom plugin. | |
| Change the $translated_text = lines to the text you want. | |
| */ | |
| function my_gettext_pmpro_mailchimp($translated_text, $text, $domain) | |
| { | |
| if($domain == "pmpro" && $text == "Join one or more of our mailing lists.") | |
| $translated_text = "Join one or more of our newsletters."; | |
| elseif($domain == "pmpro" && $text == "Join our mailing list.") |
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 | |
| /* | |
| * Allow members to upload their avatar using a Register Helper field during checkout or on the Member Profile Edit page. | |
| * | |
| * Requires: Paid Memberships Pro, Register Helper Add On. | |
| * | |
| * You can add this recipe to your site by creating a custom plugin | |
| * or using the Code Snippets plugin available for free in the WordPress repository. | |
| * Read this companion article for step-by-step directions on either method. | |
| * https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ |