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! | |
// Live API Credentials. | |
define( 'LLMS_PAYPAL_LIVE_API_USERNAME', 'some-facilitator_api1.mysite.com' ); | |
define( 'LLMS_PAYPAL_LIVE_API_PASSWORD', '****************' ); | |
define( 'LLMS_PAYPAL_LIVE_API_SIGNATURE', '***************************-****************************' ); | |
// Sandbox API Credentials. | |
define( 'LLMS_PAYPAL_TEST_API_USERNAME', 'some-facilitator_api1.mysite.com' ); | |
define( 'LLMS_PAYPAL_TEST_API_PASSWORD', '****************' ); |
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! | |
// pdflayer API Access Key. | |
define( 'LLMS_PDFS_PDFLAYER_ACCESS_KEY', '****' ); // Replace **** with your API Access Key. |
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 the functions.php file! | |
/** | |
* Modify the course catalog description | |
*/ | |
function my_alter_llms_post_type_course_description( $course_data ) { | |
// remvoe the description. | |
unset( $course_data[ 'description' ] ); | |
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 your wp-config.php file | |
// The following line disables the LifterLMS REST API. | |
define( 'LLMS_REST_DISABLE', 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
/** | |
* Store information in Local Storage by group. | |
* | |
* @since [version] | |
* | |
* @param string group Storage group id/name. | |
*/ | |
var Storage = function( group ) { | |
var store = window.localStorage; |
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
[lifterlms_hide_content id="1"] | |
This will only display to a user with access to the post with an ID of 1. | |
[/lifterlms_hide_content] | |
[lifterlms_hide_content id="1,2,3,4" relation="any"] | |
This will be displayed only to a user with access to at least one of the posts in the list: 1, 2, 3, or 4. | |
[/lifterlms_hide_content] |
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! | |
// Live API Keys. | |
define( 'LLMS_STRIPE_LIVE_PUBLISHABLE_KEY', 'pk_live_**************' ); | |
define( 'LLMS_STRIPE_LIVE_SECRET_KEY', 'sk_live_**************' ); | |
// Test API Keys. | |
define( 'LLMS_STRIPE_TEST_PUBLISHABLE_KEY', 'pk_test_**************' ); | |
define( 'LLMS_STRIPE_TEST_SECRET_KEY', 'sk_test_**************' ); |
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 the functions.php file! | |
/** | |
* Modify the default capability required to access LifterLMS Private Posts and Automations | |
* | |
* @param string $cap Default capability (manage_options) | |
* @return string | |
*/ | |
function my_custom_pa_cap( $cap ) { | |
return 'manage_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 // don't copy this line to your functions.php file! | |
// Disable "consent" requirements in LifterLMS ConvertKit | |
add_filter( 'llms_ck_enable_consent', '__return_false' ); |
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
@media all and (min-width: 480px) { | |
.llms-notification { | |
right: auto; | |
left: -800px; | |
} | |
.llms-notification.visible { | |
left: 24px; | |
right: auto; | |
} | |
} |