Changeset 2293876
- Timestamp:
- 04/28/2020 08:13:32 PM (6 years ago)
- Location:
- wp-user-profile-restriction/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (2 diffs)
-
wp-upr.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-user-profile-restriction/trunk/README.txt
r2270123 r2293876 3 3 Tags: user profile restriction, disable editing user profile, disable updating my profile, my profile restriction, profile.php restriction, wp user profile 4 4 Requires at least: 4.0.3 5 Tested up to: 5. 3.25 Tested up to: 5.4 6 6 License: GPLv2 or later 7 7 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 56 56 57 57 == Changelog == 58 = 1.0.3 = 59 * Compatiblity Check 60 58 61 = 1.0.2 = 59 62 * Compatiblity with 5.3.2 -
wp-user-profile-restriction/trunk/wp-upr.php
r2270123 r2293876 5 5 Description: Disallow users to edit their own profile if he is not an Admin/Editor/Author. 6 6 Author: Shawon 7 Version: 1.0. 27 Version: 1.0.3 8 8 Author URI: http://shawon.co 9 9 */ … … 13 13 if ( ! defined( 'ABSPATH' ) ) exit; 14 14 15 16 add_action( 'load-profile.php', 'disable_editing_my_profile' );17 15 18 16 function wpupr_disable_editing_my_profile () { … … 26 24 } 27 25 } 26 27 add_action( 'load-profile.php', 'wpupr_disable_editing_my_profile' );
Note: See TracChangeset
for help on using the changeset viewer.