Skip to content

Flags WordPress users into pending status when registering to be then approved/denied by an admin.

License

Notifications You must be signed in to change notification settings

GunnJerkens/gj-user-approve

Repository files navigation

gj-user-approve

A way to flag users when registering for a WordPress site into a pending status. That status can then be marked manually by an admin as approved or denied.

install

Add as a WordPress plugin by downloading the zip file or include as a submodule.

usage

During the registration process of a new user declare this function to append the status of 'Pending' to a new user account.

update_user_meta($user_id, 'approval_status', 'Pending');

To verify a user is approved for a section of the site use the get_user_meta function provided by WordPress.

if(get_user_meta($user_id, 'approval_status', true) === 'Approved') {
    //do stuff
}

Possible options include 'Approved', 'Pending', or 'Denied'.

email

The plugin supports mailgun and allows it to be configured through the admin panel of GJ User Approve. Mailgun is free up to 10,000 emails and is a better option that using the server's SMTP.

todo

TBD

license

MIT

About

Flags WordPress users into pending status when registering to be then approved/denied by an admin.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages