.htaccessに以下を記述してルートに設置
# Various rewrite rules.
<IfModule mod_rewrite.c>
RewriteEngine on
# Modify the RewriteBase if you are using Drupal in a subdirectory and
# the rewrite rules are n…
WordPressでログイン中のユーザーIDを取得
global $userdata;
get_currentuserinfo();
echo $userdata->ID;
この投稿へのコメント
コメントはまだありません。