ID; // Ensure we only ever show this to each user once. if ( get_user_data( $user_id, 'welcome_message_seen', false ) ) { return; } $message = sprintf( /* Translators: %1s$ is the WordPress user edit link. */ __( 'To get started, please connect WordPress to your Airstory account on your profile page.', 'airstory' ), esc_url( get_edit_user_link() ) ); ?>

ID, 'profile', array() ); $blogs = get_available_blogs( $user->ID ); ?>

%1$s', 'airstory' ), $profile['email'] ) ); ?>

your Airstory account settings.', 'airstory' ) ); ?>

$blog ) { switch_to_blog( $blog_id ); // Don't bother checking tokens if the user can't publish. if ( user_can( $user_id, 'edit_posts' ) ) { $blogs[] = array( 'id' => (int) $blog_id, 'title' => $blog->blogname, 'connected' => Connection\has_connection( $user_id ), ); } restore_current_blog(); } return $blogs; }