PHPackages                             amostajo/wordpress-login-page - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. amostajo/wordpress-login-page

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

amostajo/wordpress-login-page
=============================

Custom login page for Wordpress MVC framework.

v2.1.1(8y ago)044MITPHPPHP &gt;=5.4.0

Since Nov 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/amostajo/wordpress-login-page)[ Packagist](https://packagist.org/packages/amostajo/wordpress-login-page)[ RSS](/packages/amostajo-wordpress-login-page/feed)WikiDiscussions v2.0 Synced 2mo ago

READMEChangelog (10)Dependencies (3)Versions (13)Used By (0)

Wordpress Login Page ADD-ON
===========================

[](#wordpress-login-page-add-on)

[![Latest Stable Version](https://camo.githubusercontent.com/d8228f960e93074bfe5cc710b664d6d575e5e8b6716fdbe649197835e9908cea/68747470733a2f2f706f7365722e707567782e6f72672f616d6f7374616a6f2f776f726470726573732d6c6f67696e2d706167652f762f737461626c65)](https://packagist.org/packages/amostajo/wordpress-login-page)[![Total Downloads](https://camo.githubusercontent.com/bf3f12648ea6d3a5a578016e4cd45d508143e023973b20ac79dddeab28a93c69/68747470733a2f2f706f7365722e707567782e6f72672f616d6f7374616a6f2f776f726470726573732d6c6f67696e2d706167652f646f776e6c6f616473)](https://packagist.org/packages/amostajo/wordpress-login-page)[![License](https://camo.githubusercontent.com/d0d26caa64b994d3c1166804e535e5a248a86bf2849aeac427a2f1208ab742e8/68747470733a2f2f706f7365722e707567782e6f72672f616d6f7374616a6f2f776f726470726573732d6c6f67696e2d706167652f6c6963656e7365)](https://packagist.org/packages/amostajo/wordpress-login-page)

Add-on package for [Wordpress MVC](http://www.wordpress-mvc.com/).

**Login Page** add-on provides fully customizable ajax login, sign up, and password reset pages for wordpress. Everything out-of-the-box!

- [Installation](#installation)
    - [Configure in Template](#configure-in-template)
- [Usage](#usage)
    - [Customization](#customization)
    - [Hooks](#hooks)
- [Coding Guidelines](#coding-guidelines)
- [Copyright](#copyright)

Installation
------------

[](#installation)

This package requires [Composer](https://getcomposer.org/).

Add it in your `composer.json` file located on your template's root folder:

```
"amostajo/wordpress-login-page": "2.*.*"
```

Then run

```
composer install
```

or

```
composer update
```

to download package and dependencies.

### Configure in Template

[](#configure-in-template)

Add the following string line in your `addons` array option located at your template's config file.

```
    'Amostajo\Wordpress\LoginPageAddon\LoginPage',
```

This should be added to:

- `app\Config\app.php` on Wordpress MVC.

Usage
-----

[](#usage)

Once installed and configured, this add-on will change your login, signup and reset password pages without you having to do anything.

### Customization

[](#customization)

All views (templates) located at the `assets/views` folder can be customized in your theme.

Copy and paste them in your theme's views folder ( with same folder structure), like:

```
[addon-folder]
    /assets
        /views
            /addons
                /loginpage
                    /emails
                        resetpassword.php
                    login.php
                    lostpassword.php
                    resetpassword.php
                    signup.php

```

In your theme:

```
[theme-folder]
    /assets
        /views
            /addons
                /loginpage
                    /emails
                        resetpassword.php
                    login.php
                    lostpassword.php
                    resetpassword.php
                    signup.php

```

You can modify the HTML and add as many CSS classes as you please to fit your theme. Though there are a couple of things to consider:

- Maintain `@submit.prevent`, `v-model`, `v-show`, and `v-for` attributes; otherwise you will lose all processing functionality.
- Maintain `` tags, since they will echo important data in these views.

### Hooks

[](#hooks)

Custom hooks to use (apart from those standard from Wordpress, like `user_register` and `wp_login` to name a few).

**FILTER**: `addon_loginpage_redirect_to`Filters redirect to url.

```
add_filter( 'addon_loginpage_redirect_to', 'filter_redirect' );

function filter_redirect($redirect)
{
    // Modification
    $redirect = home_url( '/my-account.php' );

    // Array is expected in return
    return $redirect;
}
```

**FILTER**: `addon_loginpage_signup_userdata`Filters the userdata obtained from *sign up form* request. Useful if you need to add more fields to your signup form.

```
add_filter( 'addon_loginpage_signup_userdata', 'filter_signup_userdata' );

function filter_signup_userdata($userdata)
{
    // Add additional fields
    $userdata[ 'user_nicename' ] = Request::input( 'user_nicename' );
    $userdata[ 'address' ] = Request::input( 'address' );

    // Array is expected in return
    return $userdata;
}
```

**FILTER**: `registration_errors`Filters sign up (registrations) errors. Useful if you need to remove or add validations.

```
add_filter( 'registration_errors', 'filter_signup_errors' );

function filter_signup_errors($errors, $user_login, $user_email)
{
    // Adding custom validations
    if ( strlen( Request::input( 'user_pass' ) ) >= 8 ) {
        $errors->add(
            'password_length',
            'Field Password should contain at least 8 characters.'
        );
    }
    if ( !Request::input( 'address' ) ) {
        $errors->add(
            'empty_address',
            'Field Address can not be empty.'
        );
    }

    // WP_Error
    return $errors;
}
```

**FILTER**: `addon_loginpage_signup_message`Filters message shown to user once registration is completed.

```
add_filter( 'addon_loginpage_signup_message', 'filter_signup_message' );

function filter_signup_message($message)
{
    return 'Thanks for registering with us!';
}
```

**FILTER**: `retrieve_password_title`Filters email subject / title sent with reset password instructions.

```
add_filter( 'retrieve_password_title', 'filter_reset_email_title' );

function filter_reset_email_title($title)
{
    return 'Forgot your password?';
}
```

**FILTER**: `retrieve_password_message`Filters email message sent with reset password instructions. **NOTE:** You should better modify the view that comes with the add-on instead of using this filter.

```
add_filter( 'retrieve_password_message', 'filter_reset_email_message' );

function filter_reset_email_message($message)
{
    return 'Reset password message';
}
```

**FILTER**: `reset_password_errors`Filters reset password errors. Useful if you need to remove or add validations.

```
add_filter( 'registration_errors', 'filter_resetpassword_errors' );

function filter_resetpassword_errors($errors, $input, $user)
{
    // Adding custom validation
    if ( strlen( $input[ 'user_pass' ] ) >= 8 ) {
        $errors->add(
            'password_length',
            'Field Password should contain at least 8 characters.'
        );
    }

    // WP_Error
    return $errors;
}
```

**FILTER**: `addon_loginpage_forgotpassword_message`Filters message shown to user once reset instructions have been send.

```
add_filter( 'addon_loginpage_forgotpassword_message', 'filter_forgotpassword_message' );

function filter_forgotpassword_message($message)
{
    return 'Reset instructions sent to your inbox.';
}
```

**FILTER**: `addon_loginpage_resetpassword_message`Filters message shown to user once password has been reset.

```
add_filter( 'addon_loginpage_resetpassword_message', 'filter_resetpassword_message' );

function filter_resetpassword_message($message)
{
    return 'Password changed!';
}
```

Coding Guidelines
-----------------

[](#coding-guidelines)

The coding is a mix between PSR-2 and Wordpress PHP guidelines.

License
-------

[](#license)

**Page Login ADD-ON** is free software distributed under the terms of the MIT license.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~78 days

Recently: every ~99 days

Total

12

Last Release

2958d ago

Major Versions

v1.0.1 → v2.0.02017-02-09

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.0

v2.1.0PHP &gt;=5.4.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/f2cdad4e398292477582ba8ec4ab02a96fa645cd620518a5bcf697cd788c96c3?d=identicon)[amostajo](/maintainers/amostajo)

---

Top Contributors

[![amostajo](https://avatars.githubusercontent.com/u/1645908?v=4)](https://github.com/amostajo "amostajo (20 commits)")

---

Tags

wordpresslogincustom

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/amostajo-wordpress-login-page/health.svg)

```
[![Health](https://phpackages.com/badges/amostajo-wordpress-login-page/health.svg)](https://phpackages.com/packages/amostajo-wordpress-login-page)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
