Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
anderly committed Nov 23, 2022
2 parents 0ae26c0 + 049cd55 commit 8295729
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@ If you want to run the latest development version, you have two options:

This will download the latest development version of the Disable User Login plugin. While this version is usually stable, it is not recommended for use in a production environment.

Customize Disabled User Message
------------
You can customize the message users see when their accounts are disabled by hooking into the `disable_user_login.disabled_message` hook exposed by the plugin or by providing a translation in your languages file.

```php
add_filter( 'disable_user_login.disabled_message', function( $disabled_message ) {
// Defaults to: __( '<strong>ERROR</strong>: Account disabled.', 'disable-user-login' )
$disabled_message = '<strong>ERROR</strong>: Get outta here!';

return $disabled_message;
}, 10, 1 );
```

Bugs
----
If you think you've found a bug, [please raise an issue here](https://github.com/saintsystems/disable-user-login/issues?state=open).
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ This can be useful in a few situations.

= Can I change the message a disabled user sees? =

Yes, there is a filter in place for that, `disable_user_login_notice`.
Yes, there is a filter in place for that, `disable_user_login.disabled_message`.

== Screenshots ==

Expand Down

0 comments on commit 8295729

Please sign in to comment.