•  

    15000-000-0000

  •  

    nfo@pikuthemes.com

Members


[php]

if(is_user_logged_in() && function_exists(‘pmpro_hasMembershipLevel’) && pmpro_hasMembershipLevel())
{

global $current_user, $level_name, $download, $invoices, $wpdb, $Pikubizz, $Pikubizz2, $downlone, $downltwo;
$current_user->membership_level = pmpro_getMembershipLevelForUser($current_user->ID);

$level_name = $current_user->membership_level->name;
$download = ‘Download’;

$invoices = $wpdb->get_results(“SELECT o.*, UNIX_TIMESTAMP(o.timestamp) as timestamp, l.name as membership_level_name FROM $wpdb->pmpro_membership_orders o LEFT JOIN $wpdb->pmpro_membership_levels l ON o.membership_id = l.id WHERE o.user_id = ‘$current_user->ID’ ORDER BY timestamp DESC”);
$Pikubizz=’null’;
$Pikubizz2=’null’;
foreach($invoices as $invoice) {

$plevel = $invoice->membership_level_name;
if($plevel==’Pikubizz’ && $Pikubizz==’null’ )
{
$Pikubizz = $plevel;
$downlone = ‘Download’;
}
if($plevel==’Pikubizz2′ && $Pikubizz2==’null’ )
{
$Pikubizz2 = $plevel;
$downltwo = ‘Download’;
}
}
}

[/php]

Your Membership Information