Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function show_blog_list() {
- $user_id = get_current_user_id();
- if ($user_id == 0) {
- echo 'You are not logged in.';
- } else {
- echo '<h2>Your Blog List with Prosite Levels</h2>';
- $user_blogs = get_blogs_of_user( $user_id );
- foreach ($user_blogs AS $user_blog) {
- global $psts;
- echo '<li><a href="'.$user_blog->siteurl.'">'.$user_blog->blogname.'</a> - Pro Sites Level: '.$psts->get_level( $user_blog->userblog_id ).'</li>';
- }
- echo '</ul>';
- }
- }
- add_shortcode( 'bloglist', 'show_blog_list' );
Add Comment
Please, Sign In to add comment