๐
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 //Do not copy this tag. | |
| /** | |
| * Add custom fields to Paid Memberships Pro checkout page. | |
| * Must have PMPro & Register Helper Add On installed and activated to work. | |
| * Add this code to a PMPro Customizations Plugin or Code Snippets plugin. | |
| */ | |
| function pmpro_add_fields_to_checkout(){ | |
| //don't break if Register Helper is not loaded |
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 | |
| /** | |
| * Restrict Membership Signup by Email Domain | |
| * Make sure to edit the $valid_domains array defined further below | |
| * to include only the domains you'd like to allow. | |
| * | |
| * Add this code to a custom plugin. More info: https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
| */ | |
| function my_pmpro_registration_checks_restrict_email_addresses( $value ) { | |
| $email = $_REQUEST['bemail']; |
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
| /** | |
| * Add new predefined field "Profile Photo" in UM Form Builder. | |
| */ | |
| add_filter("um_predefined_fields_hook","um_predefined_fields_hook_profile_photo", 99999, 1 ); | |
| function um_predefined_fields_hook_profile_photo( $arr ){ | |
| $arr['profile_photo'] = array( | |
| 'title' => __('Profile Photo','ultimate-member'), | |
| 'metakey' => 'profile_photo', |
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 /* Template Name: Tutor Advanced Course Filter */?> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/css/bootstrap.min.css"> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css"> | |
| <style> | |
| :root{--tutor-major-color:#008CC9;--tutor-hover-color:#006fa0;--tutor-heading-color:#2A3235;--tutor-text-color:#6F7F86;--tutor-success-button-color:var(--tutor-major-color)}.tutor-sidebar-filter .single-filter{margin-bottom:25px;color:var(--tutor-heading-color)}.tutor-sidebar-filter .single-filter:last-child{margin-bottom:0}.tutor-course-col .tutor-course .tutor-loop-rating-wrap.no-rating .tutor-star-rating-group{color:#ddd}.tutor-sidebar-filter .single-filter label{display:block;cursor:pointer;transition:.3s}.tutor-sidebar-filter .single-filter label:hover{color:var(--tutor-major-color)}.tutor-sidebar-filter .single-filter label input{display:none}.tutor-sidebar-filter .single-filter label .filter-checkbox{height:17px;width: |
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_action('wp_footer', 'wt_cli_add_href_to_links'); | |
| function wt_cli_add_href_to_links() { | |
| if (class_exists('Cookie_Law_Info')) { | |
| ?> | |
| <script> | |
| jQuery(function($) { | |
| wt_cli_links = $('#cookie-law-info-bar a, #cliSettingsPopup a'); | |
| wt_cli_links.each(function() { |
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
| { | |
| "name": "faq-laravel", | |
| "private": true, | |
| "license": "UNLICENSED", | |
| "scripts": { | |
| "shopify": "shopify", | |
| "build": "shopify app build", | |
| "dev": "shopify app dev", | |
| "info": "shopify app info", | |
| "scaffold": "shopify app generate extension", |
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
| { | |
| "name": "faq-laravel", | |
| "private": true, | |
| "license": "UNLICENSED", | |
| "scripts": { | |
| "shopify": "shopify", | |
| "build": "shopify app build", | |
| "dev": "shopify app dev", | |
| "info": "shopify app info", | |
| "scaffold": "shopify app generate extension", |
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
| {% assign full_url = request.host | append: request.path %} | |
| <div style="position: fixed; bottom: 0; right: 0"> | |
| {% comment %} {{ "thumbs-up.png" | asset_url | img_tag }} {% endcomment %} | |
| <img width="150" height="150" src="https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl={{ full_url }}" alt=""/> | |
| </div> | |
| {% schema %} | |
| { | |
| "name": "App Embed", | |
| "target": "body", | |
| "settings": [] |
OlderNewer