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 | |
class WPEPAddOnSalesEngine_SendOwlAPI { | |
/** | |
* @var string | |
*/ | |
private $_api_end_point_products = 'https://www.sendowl.com/api/v1_2/products'; | |
private $_api_end_point_product_subscriptions = 'https://www.sendowl.com/api/v1_3/subscriptions'; |
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 | |
$salt = wpep_get_setting( 'auto-login-link-salt' ); | |
$user_token = get_user_meta( $user_id, WPEP_USER_META_AUTO_LOGIN_TOKEN, true ); | |
if( $user_token === '' || $regenerate_tokens ) { | |
$user_token = sha1( $salt . wpep_generate_random_token( 32 ) ); | |
update_user_meta( $user_id, WPEP_USER_META_AUTO_LOGIN_TOKEN, $user_token ); | |
} |
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( 'woocommerce_add_to_cart_validation', function( $cart_item_data ) { | |
global $woocommerce; | |
$woocommerce->cart->empty_cart(); | |
return true; | |
} ); | |
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_course_type_coordinator', function( $coordinator_object, $course_id, $course_type ) { | |
if( $coordinator_object === false ) | |
return false; | |
$coordinator_object->top_level_request = true; | |
return $coordinator_object; | |
}, 50, 3 ); |
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( 'map_meta_cap', function( $args ) { | |
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-wrapper>.wpep-container .wpep-course-single.course-type-video .course-primary-container .course-primary-content .video-content .wpep-video-separator h2.wpep-video-description-title:before { | |
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 | |
/** | |
* If WordPress will ever work smoothly with procedures, we want to refactor this. | |
* @param $search_term | |
* @return array | |
*/ | |
function example_nested_parent_map_search( $search_term ) { | |
global $wpdb; |
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"> | |
// The URL Params you want to whitelist, it will apply them on all links on the same domain. | |
function rl_whitelisted_url_params() { | |
return [ 'example-url-param', 'example-url-param-2', 'example-url-param-3' ]; | |
} | |
function rl_get_url_param(parameterName) { | |
var result = null, | |
tmp = [], | |
items = location.search.substr(1).split("&"); |
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
= 1.11.14.1 = | |
* Resolved Index Page Course Progress Bar fill error. | |
= 1.11.14 = | |
* New Discussion Notifications systems. | |
* New Discussions Design | |
* New Course Discussions | |
* WPEP Content Types can now be filtered by Category. |
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_digimember_integration_enable_lock][/wpep_digimember_integration_enable_lock] | |
[wpep_index] | |
[wpep_digimember_integration_disable_lock][/wpep_digimember_integration_disable_lock] |