<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>turusuke_0</author_name>
  <author_url>https://blog.hatena.ne.jp/turusuke_0/</author_url>
  <blog_title>Webdelog</blog_title>
  <blog_url>https://www.webdelog.info/</blog_url>
  <categories>
  </categories>
  <description>echo $user_identity; で取得することが出来る。 これを利用して、会員制のページなどに利用できます。 if($user_identity==&quot;admin&quot; || $user_identity==&quot;reader&quot;){ //管理人または購読者(ここではreaderというユーザ)だったら行う処理 }else{ //そうでなかったらログイン画面へ飛ばす。 auth_redirect(); } includeされる側のファイルからだと $user_identityをそのまま呼び出すことはできないので、 先にグローバル変数として明示しておく必要がある global $user_ident…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.webdelog.info%2Fentry%2F2011%2F08%2F07%2Fwordpress-user_identity.html_1&quot; title=&quot;Wordpressでログインしているユーザ名を表示する - Webdelog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-08-07 09:00:00</published>
  <title>Wordpressでログインしているユーザ名を表示する</title>
  <type>rich</type>
  <url>https://www.webdelog.info/entry/2011/08/07/wordpress-user_identity.html_1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
