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 // don't include this line if pasting into an existing php file! | |
| // late fire version of above... | |
| /** | |
| * Dequeue the 3.5.x version of Select2 JS library enqueued by ACF Pro | |
| * This is only necessary on LifterLMS Quiz & Course Pages where LifterLMS | |
| * requires version 4.x or higher to correctly function | |
| */ | |
| function maybe_dequeue_select2() { | |
| $screen = get_current_screen(); | |
| if ( 'llms_quiz' === $screen->post_type || 'course' === $screen->post_type ) { |
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 // don't include this line when copying! | |
| define( 'LLMS_LOAD_DEPRECATED', 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
| <?php // don't include this when pasting | |
| add_action( 'wp_print_footer_scripts', 'i_know_this_is_bad' ); | |
| function i_know_this_is_bad() { | |
| // lets only load this on lessons where it would be used | |
| if ( 'lesson' === get_post_type() ) { | |
| echo " | |
| <script> |
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 // don't include this if pasting into a php file | |
| /** | |
| * Add Divi Related HTML to LifterLMS templates that need some extra elements | |
| * | |
| * Tested up to Divi v3.0.9 | |
| */ | |
| /** | |
| * Remove default LifterLMS Content Wrappers | |
| */ |
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
| // we clear the order session data and don't provide you a great way to regrab it for the next function | |
| // so do this shameful thing... | |
| add_filter( 'lifterlms_order_process_success', function( $order ) { | |
| LLMS()->session->set( 'my_temp_order', $order ); | |
| }, 10, 1 ); | |
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
| what's brown and sticky? | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | |