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( 'admin_footer', function() { | |
echo '<script type="text/javascript"> | |
jQuery(document).ready(function() { | |
jQuery( "#wpep-admin-style-css" ).each( function() { | |
var hrefAttribute = jQuery(this).attr("href"); | |
hrefAttribute += ( hrefAttribute.indexOf("?") === -1 ? "?" : "&" ) + "wpep-forced-refresh=" + "' . date("Y-m-d" ) . '"; | |
jQuery(this).attr( "href", hrefAttribute ); | |
}); |
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( 'wpep_addon_sales_engine_payment_processing_methods', function( $processing_options ) { | |
$processing_options['stripe'] = __( "Stripe" ); | |
}, 20 ); | |
?> |
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-single #course-primary #course-content .wpep-course-form .section-accordion-group .lesson-accordion .lesson-accordion-group .ui-accordion-header { | |
background: rgba(0, 0, 0, 0) url("https://codestore.codeiscode.com/wp-content/uploads/2016/09/codeiscode-header-logo-red.png") repeat scroll 0 0; | |
} |
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-primary-container .course-primary-content .wpep-course-form .section-accordion-group > h2 .checkbox > strong, | |
.wpep-wrapper .wpep-container .course-primary-container .course-primary-content .wpep-course-form .section-accordion-group .lesson-accordion .lesson-accordion-group .ui-accordion-header .checkbox > strong { | |
display: none !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
<?php | |
add_filter( 'wpep_content_user_profile_tab_list', function( $tab_list ) { | |
for( $i = 1; $i <= 10 ; $i++ ) | |
$tab_list['demo_tab_' . $i ] = [ | |
'title' => 'Demo Tab ' . $i, | |
'content' => 'Demo Tab Content - ' . $i, | |
]; | |
return $tab_list; |
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_profile layout-max-width="1600px"] |
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] |
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
<?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
<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"; |