Fisex pms support class

parent 65f13d56
......@@ -132,6 +132,13 @@ function user_has_premium_access($uid='')
return $sexhack_pms->is_premium($uid) AND is_user_logged_in();
}
function user_is_premium($uid='')
{
global $sexhack_pms;
return $sexhack_pms->is_premium($uid);
}
function user_has_member_access($uid='')
{
global $sexhack_pms;
......@@ -141,6 +148,13 @@ function user_has_member_access($uid='')
}
function user_is_member($uid='')
{
global $sexhack_pms;
return $sexhack_pms->is_member($uid);
}
function send_changepwd_mail($user_login, $baseurl=false){
global $wpdb, $wp_hasher;
......
......@@ -218,8 +218,8 @@ if(!class_exists('SexHackMe_Plugin')) {
include_once( SH_PLUGIN_DIR_PATH . 'includes/functions-crypto.php' );
/* Paid Member Subscription utils */
if( file_exists( SH_PLUGIN_DIR_PATH . 'includes/functions-paid-member-subscriptions-integration.php' ) )
include_once( SH_PLUGIN_DIR_PATH . 'includes/functions-paid-member-subscriptions-integration.php' );
if( file_exists( SH_PLUGIN_DIR_PATH . 'includes/class-paid-member-subscriptions-integration.php' ) )
include_once( SH_PLUGIN_DIR_PATH . 'includes/class-paid-member-subscriptions-integration.php' );
/* Video Players */
if( file_exists( SH_PLUGIN_DIR_PATH . 'includes/class-video-players.php' ) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment