__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
function r3d_user_has_woo_subscription(){
if ( ! is_user_logged_in() ) return false;
$user_id = get_current_user_id();
if( $user_id == 0 ) return false;
if(function_exists('wcs_user_has_subscription'))
return wcs_user_has_subscription( $user_id, '', 'active' );
return false;
}
$show_flipbook = true;
$r3d_post_id = get_the_ID();
$r3d_id = get_post_meta($r3d_post_id, 'flipbook_id', true);
$flipbook = get_option('real3dflipbook_' . $r3d_id);
$flipbook_global_options = get_option("real3dflipbook_global", array());
$flipbook = array_merge($flipbook_global_options, $flipbook);
if ( isset($flipbook['access'])) {
if($flipbook['access'] == 'woo_subscription')
$show_flipbook = r3d_user_has_woo_subscription();
else if ($flipbook['access'] == 'none')
$show_flipbook = false;
}
if($show_flipbook){
get_header();
echo do_shortcode('[real3dflipbook id="'.$r3d_id.'"]');
get_footer();
}else{
esc_html_e('Forbidden');
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Real3DFlipbook.php | File | 48 KB | 0775 |
|
| activation.php | File | 590 B | 0775 |
|
| addons.php | File | 5.7 KB | 0775 |
|
| admin-actions.php | File | 2.21 KB | 0775 |
|
| archive-r3d.php | File | 210 B | 0775 |
|
| edit-flipbook-post.php | File | 14.29 KB | 0775 |
|
| flipbooks.php | File | 6.99 KB | 0775 |
|
| general.php | File | 8.84 KB | 0775 |
|
| import.php | File | 741 B | 0775 |
|
| index.php | File | 26 B | 0775 |
|
| plugin-admin.php | File | 6.89 KB | 0775 |
|
| post-type.php | File | 11.62 KB | 0775 |
|
| single-r3d.php | File | 1007 B | 0775 |
|