This file contains 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 an arbitrary plugin directory to the list | |
* @param array $dirs Array of paths to directories to load LifterLMS templates from | |
* @return array | |
*/ | |
function my_llms_theme_override_dirs( $dirs ) { | |
array_unshift( $dirs, plugin_dir_path( __FILE__ ) . '/lifterlms' ); |
This file contains 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 line to a functions.php file! | |
/** | |
* Add a timezone string to the end of the lesson drip availability message | |
* | |
* The default message is: "The lesson "{$LESSON_TITLE}" will be available on {$AVAILABLE_DATE} | |
* | |
* This filter converts the message to: "The lesson "{$LESSON_TITLE}" will be available on {$AVAILABLE_DATE} {$TIMEZONE} | |
* | |
* @since 2020-08-21 |
This file contains 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 copy this to a functions.php file! | |
/** | |
* Make the BuddyPress/BuddyBoss "Private Network" available only to "active" LifterLMS User Accounts | |
* | |
* An "active" account is any logged in user with active enrollment into at least one course or membership. | |
* | |
* @return void | |
*/ | |
function bp_llms_private_network_redirect() { | |
This file contains 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 copy this line to you php file! | |
/** | |
* Flip the order of first and last name fields | |
* @param array $fields array of existing field definitions | |
* @param string $screen id of the field set being rendered | |
* @return array | |
*/ | |
function my_lifterlms_get_person_fields( $fields, $screen ) { | |
// var_dump( $fields ); // uncomment this line to see & inspect all the fields | |
// ensure we're only modifying the checkout and registration fieldsets |
This file contains 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
# Show Activities | |
gesture swipe up 4 xdotool key super | |
# Show Applications | |
gesture swipe down 4 xdotool key super+a | |
# Navigation: Forward & Back | |
gesture swipe left 3 xdotool key alt+Right | |
gesture swipe right 3 xdotool key alt+Left |
This file contains 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 copy this line to your functions.php file! | |
/** | |
* Remove Stripe.js (as enqueued by the LifterLMS Stripe plugin) from pages where Stripe isn't explicitly required or used. | |
* | |
* Stripe *recommends* that you load Stripe.js on every site on your website | |
* to improve automatic fraud detection (https://stripe.com/docs/radar). | |
* | |
* You can use this code if you don't care about Radar / fraud detection | |
* to enjoy a small performance improvement. |
This file contains 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 copy this line | |
define( 'WP_DEBUG', true ); | |
define( 'WP_DEBUG_LOG', true ); | |
define( 'WP_DEBUG_DISPLAY', true ); |
This file contains 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 copy this line to your functions.php file. | |
/** | |
* Create an email blacklist to prevent spam registrations during LifterLMS checkout | |
* | |
* This is hooked to llms_before_checkout_validation | |
* | |
* This filter runs prior to any built-in checkout form validations allowing custom | |
* validations to be run. | |
* |
This file contains 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 copy this line to your wp-config.php file! | |
// Twilio. | |
define( 'LLMS_TWILIO_SID', 'XXXXXXXXXXXXXXXXXXXXXXXXXX' ); | |
define( 'LLMS_TWILIO_AUTHKEY', 'XXXXXXXXXXXXXXXXXXXXXXXXXX' ); |
This file contains 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 copy this line to your functions.php file! | |
/** | |
* Adjust the locale of the Stripe.js credit card form. | |
* | |
* @param array $settings Array of settings. | |
* @return array | |
*/ | |
function my_llms_stripe_js_locale( $settings ) { |