Check External Login
v1.0theurtin · 2022年4月29日 上架
Allow to check if user is logged in another website with JSONP
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 1,027
- 最近更新
- 2023年3月17日
需要 WordPress 5.0+已测试到 6.1.17PHP 7.4+
贡献者
Allow to check if user is logged in another website with JSONP.
You can edit url to call in admin settings page.
Plugin add automatically all javascript needed to check if user is connected on the defined url.
Url must return a JSON like this :
{
"connected":false,
"link":
{
"linkName": "myLink"
},
"text":
{
"textName": "myText"
},
}
Plugins will automatically do following actions on element depending on their html class :
– class js-cel-not-connected : will be hide if connected is true
– class js-cel-connected : will be hide if connected is false
– class js-cel-text-[textName] : element content will be replace with text in JSON
– class js-cel-link-[linkName] : element href will be replace with link in JSON