Changeset 2586531
- Timestamp:
- 08/22/2021 07:13:34 AM (5 years ago)
- Location:
- lock-user-account/tags/1.0.2
- Files:
-
- 3 edited
-
includes/class-user-meta.php (modified) (2 diffs)
-
lock-user-account.php (modified) (1 diff)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lock-user-account/tags/1.0.2/includes/class-user-meta.php
r1621243 r2586531 61 61 */ 62 62 public function output_column( $output, $column_name, $user_id ){ 63 return ( 'locked' === $column_name ) ? get_user_meta( (int)$user_id, sanitize_key( 'baba_user_locked' ), true ) : $output; 63 if( 'locked' !== $column_name ) return $output; 64 $locked = get_user_meta( $user_id, sanitize_key( 'baba_user_locked' ), true ); 65 return ( 'yes' === $locked ) ? __( 'Locked', 'babatechs' ) : __( 'Not Locked', 'babatechs' ); 64 66 } 65 67 … … 75 77 // Process lock request 76 78 if( 'lock' === $current_action ){ 79 $current_user_id = get_current_user_id(); 77 80 foreach( $userids as $userid ){ 81 if( $userid == $current_user_id ) continue; 78 82 update_user_meta( (int)$userid, sanitize_key( 'baba_user_locked' ), 'yes' ); 79 83 } -
lock-user-account/tags/1.0.2/lock-user-account.php
r1658064 r2586531 3 3 /** 4 4 * Plugin Name: Lock User Account 5 * Plugin URI: http://www. babatechs.com5 * Plugin URI: http://www.teknigar.com 6 6 * Description: Lock user accounts with custom message 7 * Version: 1.0. 28 * Author: babaTechs9 * Author URI: http://www. babatechs.com7 * Version: 1.0.4 8 * Author: teknigar 9 * Author URI: http://www.teknigar.com 10 10 * Text Domain: babatechs 11 11 * Domain Path: /languages 12 12 * 13 13 * @package LockUserAccount 14 * @author babaTechs15 * @version 1.0. 214 * @author teknigar 15 * @version 1.0.3 16 16 */ 17 17 -
lock-user-account/tags/1.0.2/readme.txt
r2586528 r2586531 4 4 Requires at least: 4.3 5 5 Tested up to: 5.8 6 Stable tag: 4.36 Stable tag: 1.0.2 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 17 17 It has feature to add custom lock message to show on login screen for locked account. You can add your custom locked account message by going Settings and then click on General, there you can enter the message in field has label as Locked User Message. 18 18 19 **[Send your feedback](http://www. babatechs.com)**19 **[Send your feedback](http://www.teknigar.com)** 20 20 21 21 == Installation == … … 29 29 = Can I add custom error message = 30 30 Yes, you can add custom error message by going in Settings and General. 31 32 = What if I accidentally lock myself = 33 Logged in user can not lock himself, it will be skipped 31 34 32 35 == Screenshots == … … 48 51 Improved code to save settings 49 52 53 = 1.0.3 = 54 Updated for WP 5.5 55 Prevented current user from being locked 56 50 57 == Upgrade Notice == 51 58 52 = 1.0. 2=59 = 1.0.3 = 53 60 Updated version
Note: See TracChangeset
for help on using the changeset viewer.