最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Can I get the user name in JavaScript?

programmeradmin5浏览0评论

I would like to use the user name of a logged in user in JavaScript without server side implementation.

Since I'm using a cache plugin (WP Super Cache), I don't want to place a user name into the generated HTML output of WordPress. But I would like to use it to fill a contact form, if the user is already logged in.

Is there a way without a separate AJAX request?

发布评论

评论列表(0)

  1. 暂无评论