2017 © Pedro Peláez
 

wordpress-plugin wp-client-ajax-login

A simple plugin that allows login to wordpress through the client's browser via AJAX.

image

enricodeleo/wp-client-ajax-login

A simple plugin that allows login to wordpress through the client's browser via AJAX.

  • Monday, May 4, 2015
  • by enricodeleo
  • Repository
  • 1 Watchers
  • 1 Stars
  • 9 Installations
  • Shell
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

WP Client Ajax Login

A simple helper plugin that allows login to wordpress through the client's browser via AJAX., (*1)

How to install

Composer

If you're using Composer to manage your codebase add this plugin to your dependencies running:, (*2)

composer require enricodeleo/wp-client-ajax-login 0.1.8, (*3)

Or manually add it to your composer.json:, (*4)

"require": {
  "enricodeleo/wp-client-ajax-login": "0.1.8"
}

Legacy way

Download this repo as a zip file and extract it to your wp-content/plugins directory., (*5)

OR, (*6)

Install this plugin via the official Wordpress Plugin registry https://wordpress.org/plugins/wp-client-ajax-login/admin/., (*7)

Usage

This plugin is an helper and doesn't add anything to your wordpress theme. You might want to use it in conjunction with your frontend custom code., (*8)

You can use vanilla Javascript, Angular, or any framework that suits your needs., (*9)

Here's an example with jQuery:, (*10)

$.ajax({
    type: "POST",
    url: "http://yoursite.dev/wp-admin/admin-ajax.php", //change this url acoording to your wp site
    xhrFields: {
        withCredentials: true
    },
    data: {
        user: "username", //hard-coded for example purposes
        pwd: "password", //hard-coded for example purposes
        action: "clientAjaxLogin"
    },
    success: function(resp) {
        var respObj = JSON.parse( resp );
        if( respObj.success ) {
            window.location = respObj.success;
        } else {
            console.log( respObj.error );
        }
    }
});

Of course you can bind the ajax call to an event like submitting a form., (*11)

The Versions

04/05 2015

dev-master

9999999-dev https://github.com/enricodeleo/wpClientAjaxLogin

A simple plugin that allows login to wordpress through the client's browser via AJAX.

  Sources   Download

MIT

The Requires

 

wordpress ajax login client

04/05 2015

0.1.8

0.1.8.0 https://github.com/enricodeleo/wpClientAjaxLogin

A simple plugin that allows login to wordpress through the client's browser via AJAX.

  Sources   Download

MIT

The Requires

 

wordpress ajax login client

11/11 2014

0.1.7

0.1.7.0 https://github.com/enricodeleo/wpClientAjaxLogin

A simple plugin that allows login to wordpress through the client's browser via AJAX.

  Sources   Download

MIT

The Requires

 

wordpress ajax login client

11/11 2014

0.1.6

0.1.6.0 https://github.com/enricodeleo/wpClientAjaxLogin

A simple plugin that allows login to wordpress through the client's browser via AJAX.

  Sources   Download

MIT

The Requires

 

wordpress ajax login client

31/10 2014

0.1.5

0.1.5.0 https://github.com/enricodeleo/wpClientAjaxLogin

A simple plugin that allows login to wordpress through the client's browser via AJAX.

  Sources   Download

MIT

The Requires

 

wordpress ajax login client

31/10 2014

0.1.4

0.1.4.0 https://github.com/enricodeleo/wpClientAjaxLogin

A simple plugin that allows login to wordpress through the client's browser via AJAX.

  Sources   Download

MIT

The Requires

 

wordpress ajax login client

30/10 2014

0.1.3

0.1.3.0 https://github.com/enricodeleo/wpClientAjaxLogin

A simple plugin that allows login to wordpress through the client's browser via AJAX.

  Sources   Download

MIT

The Requires

 

wordpress ajax login client

30/10 2014

0.1.2

0.1.2.0 https://github.com/enricodeleo/wpClientAjaxLogin

A simple plugin that allows login to wordpress through the client's browser via AJAX.

  Sources   Download

MIT

The Requires

 

wordpress ajax login client

30/10 2014

0.1.1

0.1.1.0 https://github.com/enricodeleo/wpClientAjaxLogin

A simple plugin that allows login to wordpress through the client's browser via AJAX.

  Sources   Download

MIT

The Requires

 

wordpress ajax login client

30/10 2014

0.1.0

0.1.0.0 https://github.com/enricodeleo/wpClientAjaxLogin

A simple plugin that allows login to wordpress through the client's browser via AJAX.

  Sources   Download

MIT

The Requires

 

wordpress ajax login client