Check External Login

Plugin Banner

Check External Login

by theurtin

Download
Description

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

  1. Upload plugin folder to the “/wp-content/plugins/” directory.
  2. Activate the plugin through the “Plugins” menu in WordPress.
  3. Update url in plugin settings page

1.0

  • Initial release.
Back to top