Created
December 6, 2014 23:16
-
-
Save idenkov/8bc5bd05e217b97821a0 to your computer and use it in GitHub Desktop.
Displays some information depending on the level in Pro Sites
This file contains 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 | |
global $wpdb; | |
$blog_id = $wpdb->blogid; | |
$sql = "SELECT level FROM {$wpdb->base_prefix}pro_sites WHERE blog_ID = '$blog_id'"; | |
$level = $wpdb->get_var( $sql ); | |
?> | |
<?php if ( $level == 1 ) : ?> | |
Level 1 content here | |
<?php elseif ( $level == 2 ) : ?> | |
Level 2 content here | |
<?php elseif ( $level == 3 ) : ?> | |
Level 3 content here | |
<?php else : ?> | |
Free level content here | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment