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_filter( "pre_get_posts", 'example_code_supress_filter', 100 ); | |
function example_code_supress_filter( $query ) { | |
$query->set( 'suppress_filters', false ); | |
return $query; | |
} |
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
<script type="text/javascript"> | |
jQuery(document).ready(function() { | |
setTimeout( function() { | |
window.location = '<?php echo wpep_course_lesson_permalink( wpep_controller()->userActivity->get_delivered_course_lesson_id( $course_id, get_current_user_id() ), $course_id ); ?>'; | |
}, 3000 ); | |
}); | |
</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 | |
$show_content = true; | |
if( isset( $previous_lesson_id ) && intval( $previous_lesson_id ) != 0 && is_user_logged_in() ) { | |
global $wpdb; | |
$sql = 'SELECT lc.* | |
FROM ' . $wpdb->prefix . 'wpep_section_lesson_completed lc | |
WHERE lc.lesson_id = ' . $previous_lesson_id . ' |
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
.wpep-shadowed-box{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)"!important;filter:alpha(opacity=70)!important;opacity:0.7!important} | |
.wpep-shadowed-box.wpep-hidden{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"!important;filter:alpha(opacity=0)!important;opacity:0!important} |
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
.wpep-wrapper div { | |
-ms-box-sizing: border-box !important; | |
-webkit-box-sizing: border-box !important; | |
-moz-box-sizing: border-box !important; | |
box-sizing: border-box !important; | |
} |
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
.wpep-wrapper>.wpep-container .course-grid-container [data-items-per-row="4"] .course-grid-item, .wpep-wrapper>.wpep-container .course-grid-container [data-items-per-row="4"] .ebook-grid-item, .wpep-wrapper>.wpep-container .course-grid-container [data-items-per-row="4"] .offer-grid-item { | |
width: 22.8% !important; | |
} | |
@media (max-width: 992px) { | |
.wpep-wrapper>.wpep-container .course-grid-container [data-items-per-row="4"] .course-grid-item, .wpep-wrapper>.wpep-container .course-grid-container [data-items-per-row="4"] .ebook-grid-item, .wpep-wrapper>.wpep-container .course-grid-container [data-items-per-row="4"] .offer-grid-item { | |
width: 31.0% !important; | |
} | |
} | |
@media (max-width: 768px) { |
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
<script type="text/javascript"> | |
document.addEventListener('DOMContentLoaded', function () { | |
var myCustomPriceActions = function() { | |
var price = parseInt( document.querySelector("ul.order-details .order-details-total em[data-currency]").innerHTML.replace( "$", "" ) ); | |
var credit_card_element = document.querySelector("#form-order > .credit-cards" ); | |
if( price === 0 ) { | |
credit_card_element.style.display = "none"; | |
} else { | |
credit_card_element.style.display = "block"; |
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 | |
//$information = file_get_contents( 'information.txt' ); | |
// or | |
$information = " | |
public-key-address | |
public-key-address | |
public-key-address | |
public-key-address |
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( 'init', function() { | |
if( !isset( $_GET['edd_action'] ) && !isset( $_POST['edd_action'] ) ) | |
return; | |
if( !isset( $_GET[ 'license' ] ) || !isset( $_GET[ 'item_id' ] ) ) | |
if( !isset( $_POST[ 'license' ] ) || !isset( $_POST[ 'item_id' ] ) ) | |
return; |
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
[wpep_course_not_completed id="1"] | |
[wpep_course id="1"] | |
[/wpep_courses_not_completed] | |
[wpep_course_is_completed id="1"] | |
[wpep_index] | |
[/wpep_courses_is_completed] |