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
<?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-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
.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
<?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
<?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 | |
if( !defined( 'WPEP_PLACEHOLDER_IMAGE' ) ) | |
define( "WPEP_PLACEHOLDER_IMAGE", "your-image-link-goes-here" ); | |
?> |
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 | |
$user_entries = FrmEntry::getAll( [ | |
'form_id' => $required_form_id_any, | |
'user_id' => get_current_user_id(), | |
'parent_item_id' => 0 | |
] ); | |
if( empty( $user_entries ) ) |
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
$.fn.wpepSerializeObject = function () { | |
"use strict"; | |
var result = {}, | |
objectInstance = this; | |
var extend = function (i, element) { | |
var node = result[element.name]; | |
if ('undefined' !== typeof node && node !== null) { |
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
SELECT p.ID as license_id, | |
c_exp.meta_value as child_expiration, | |
p_exp.meta_value as parent_expiration | |
FROM `wp_posts` p | |
LEFT JOIN `wp_postmeta` c_exp ON c_exp.post_id = p.ID AND c_exp.meta_key = "_edd_sl_expiration" | |
LEFT JOIN `wp_postmeta` p_exp ON p_exp.post_id = p.post_parent AND p_exp.meta_key = "_edd_sl_expiration" | |
WHERE p.`post_type` = 'edd_license' | |
AND p.post_parent != 0 |