WordPress.org

Yorùbá

  • Themes
  • Plugins
  • Àtìlẹ́yìn
  • Nípa
  • Ìwé Ìtónisónà
  • Egbé
  • Kàn síwa
  • Gba WordPress
Wa WordPress jáde
WordPress.org

Plugin Directory

Prevent Concurrent Logins

  • Fi plugin sílẹ̀
  • Àwọn ààyò mi
  • Wọlé
  • Fi plugin sílẹ̀
  • Àwọn ààyò mi
  • Wọlé

Plugin yìí kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress. Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

Prevent Concurrent Logins

Láti ọwọ́ Frankie Jarrett
Ṣe ìgbàsílẹ̀
  • Àwọn àlàyé
  • Àwọn àgbéyẹ̀wò
  • Ìdàgbàsókè
Ìrànlọ́wọ́

Àpèjúwe

Did you find this plugin helpful? Please consider leaving a 5-star review.

  • Deters members/subscribers from sharing their accounts with others
  • Hardens security by destoying old sessions automatically
  • Prompts old sessions to login again if they want to continue
  • Ideal for membership sites and web applications

Important: If you plan to network-activate this plugin on a multisite network, please install the Proper Network Activation plugin beforehand.

Development of this plugin is done on GitHub. Pull requests welcome. Please see issues reported there before going to the plugin forum.

FAQ

Where are the options for this plugin?

This plugin does not have a settings page. Simply put, I don’t like bloating my plugins with a bunch of options.

Instead, I try to develop functionality using the 80/20 principle so that for 80% of use cases you all you need to do is activate the plugin and it “just works”.

For the other 20% of you who want things to behave differently there are hooks available in the plugin so you can customize default behaviors.

Can I still allow concurrent logins for certain users?

Yes, simply add this code to your theme’s functions.php file or as an MU plugin:

function my_pcl_whitelist_user_ids( $prevent, $user_id ) {

    $whitelist = array( 1, 2, 3 ); // Provide an array of whitelisted user IDs

    return in_array( $user_id, $whitelist ) ? false : $prevent;

}
add_filter( 'pcl_prevent_concurrent_logins', 'my_pcl_whitelist_user_ids', 10, 2 );

Or this code to bypass users with certain roles:

function my_pcl_whitelist_roles( $prevent, $user_id ) {

    $whitelist = array( 'administrator', 'editor' ); // Provide an array of whitelisted user roles

    $user = get_user_by( 'id', absint( $user_id ) );

    $roles = ! empty( $user->roles ) ? $user->roles : array();

    return array_intersect( $roles, $whitelist ) ? false : $prevent;

}
add_filter( 'pcl_prevent_concurrent_logins', 'my_pcl_whitelist_roles', 10, 2 );

Àwọn àgbéyẹ̀wò

Awesome!!

mcostam1985 Èrèlé 2, 2021
Your awesome man! This plugin with your functions.php code works perfectly. Thank you so much for the time spent working on it.

This plugin is great and has not required any update for 4 years

nddao Ògún 13, 2020
THIS PLUGIN IS SIMPLE AND PERFECT THAT THE AUTHOR HAS NOT NEED TO UPDATE ANYTHING SINCE LAST 4 YEARS. I had to create an account just to give this plugin a 5-star rating and let people know that it works perfectly. I was looking for something to prevent users from concurently login and found this plugin. However, the age of this plugin and the number of active installation (1000+ at this time) made me skip it. The information that this plugin was updated 4 years ago further drove me away. I decided to install another plugin, which made me crazy because it kept log me out every couple minutes. Then I removed the mentioned plugin and gave this plugin a try, and it works as much as I expect.

GREAT!

César Ọ̀pẹ 12, 2019
I tried it on my easytomake online course site, and used 3 browsers. Disconnect the others! Thank you CÉSAR

Great!

Eder Tuffic Bélú 12, 2018
It was exactly what I needed for my course. Thank you!

Muito bom

uilianv Igbe 5, 2017 1 ìdáhùn
Faz o que promete, resolve o problema, sem nenhum requinte desnecessário

Super!

Vasily Ẹrẹ́nà 18, 2017
Love the functionality. Exactly what i need now. Thank you very much!
Ka gbogbo àwọn àgbéyẹ̀wò 17

Àwọn Olùkópa & Olùgbéejáde

“Prevent Concurrent Logins” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí plugin yìí.

Àwọn Olùkópa
  • Frankie Jarrett

Túmọ̀ “Prevent Concurrent Logins” sí èdè rẹ.

Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

Ṣàwárí koodu, ṣàyẹ̀wò ibi ìpamọ́ SVN, tàbí ṣe àgbékalẹ̀ sí àkọsílẹ̀ ìdàgbàsókè nípasẹ̀ RSS.

Àkọsílẹ̀ àwọn àyípadà

0.4.0 – October 16, 2015

  • Official support for WordPress 4.3

Props fjarrett

0.3.0 – May 4, 2015

  • Action hooks now available after sessions are destroyed for logging purposes (#4)

Props fjarrett

0.2.0 – January 28, 2015

  • Destroy old sessions for all users upon activation

Props fjarrett, chuckreynolds

0.1.1 – January 2, 2015

  • Added filter to allow certain users to have concurrent sessions when necessary

Props fjarrett, nutsandbolts

0.1.0 – December 31, 2014

  • Initial release

Props fjarrett

Àkójọpọ̀ Meta

  • Ẹ̀yà 0.4.0
  • Ìgbàgbọ́hùn tó kẹ́yìn ọdún 9 sẹ́yìn
  • Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ 900+
  • Ẹ̀yà WordPress 4.1 tàbí ju bẹ́ẹ̀ lọ
  • Dánwò dé 4.6.30
  • Èdè
    English (US)
  • Àwọn àmì
    loginmembershipsecuritysenseiusers
  • Ìwòye Tó Péye

Àwọn ìbò

5 lára àwọn ìràwọ̀ 5.
  • 17 5-star reviews àwọn ìràwọ̀ 5 17
  • 0 4-star reviews àwọn ìràwọ̀ 4 0
  • 0 3-star reviews àwọn ìràwọ̀ 3 0
  • 0 2-star reviews àwọn ìràwọ̀ 2 0
  • 0 1-star reviews ìràwọ̀ 1 0

Add my review

See all reviews

Àwọn Olùkópa

  • Frankie Jarrett

Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

Wo àpéjọ ìrànlọ́wọ́

  • Nípa Wa
  • Iroyin
  • Hosting
  • Privacy
  • Àfihàn
  • Themes
  • Plugins
  • Patterns
  • Kọ ẹkọ
  • Atilẹyin
  • Developers
  • WordPress.tv ↗
  • Kópa
  • Àwọn ìṣẹ̀lẹ̀
  • Ṣètọrẹ ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Yorùbá

  • Ṣabẹwo sí àkàùntù X (Twitter tẹ́lẹ̀) wa
  • Bẹwo akanti Bluesky wa
  • Lọ sí àkáǹtì Mastodon wa
  • Bẹwo akanti Threads wa
  • Ṣabẹwo si Facebook wa
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Bẹwo akanti TikTok wa
  • Visit our YouTube channel
  • Bẹwo akanti Tumblr wa
Koodu jẹ Ewi.