Changeset 2688499
- Timestamp:
- 03/03/2022 08:30:50 PM (4 years ago)
- Location:
- pxl-tools
- Files:
-
- 6 edited
- 1 copied
-
tags/1.1.18 (copied) (copied from pxl-tools/trunk)
-
tags/1.1.18/custom/users/hide-personal-options-from-no-admin.php (modified) (2 diffs)
-
tags/1.1.18/pxl-tools.php (modified) (1 diff)
-
tags/1.1.18/readme.txt (modified) (2 diffs)
-
trunk/custom/users/hide-personal-options-from-no-admin.php (modified) (2 diffs)
-
trunk/pxl-tools.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pxl-tools/tags/1.1.18/custom/users/hide-personal-options-from-no-admin.php
r2688491 r2688499 2 2 3 3 // Check if is non-administrator user 4 // Case true, remove some profile fields by your css class name4 // Case true, hide some profile fields by your css class name 5 5 if (!current_user_can('administrator')) { 6 6 add_action('personal_options', 'pxl_hide_user_personal_options'); … … 13 13 <script type="text/javascript"> 14 14 jQuery(document).ready(function($) { 15 $('#your-profile .form-table:first, #your-profile h3:first, .yoast, .user-description-wrap, .user-display-name-wrap, .user-url-wrap, h2, .user-pinterest-wrap, .user-myspace-wrap, .user-soundcloud-wrap, .user-tumblr-wrap, .user-wikipedia-wrap ').remove();15 $('#your-profile .form-table:first, #your-profile h3:first, .yoast, .user-description-wrap, .user-display-name-wrap, .user-url-wrap, h2, .user-pinterest-wrap, .user-myspace-wrap, .user-soundcloud-wrap, .user-tumblr-wrap, .user-wikipedia-wrap .user-facebook-wrap .user-instagram-wrap .user-linkedin-wrap .user-twitter-wrap .user-youtube-wrap').hide(); 16 16 }); 17 17 </script> -
pxl-tools/tags/1.1.18/pxl-tools.php
r2688491 r2688499 10 10 * License: GPL-2.0 11 11 * License URI: https://opensource.org/licenses/GPL-2.0 12 * Version: 1.1.1 712 * Version: 1.1.18 13 13 * 14 14 * -
pxl-tools/tags/1.1.18/readme.txt
r2688491 r2688499 2 2 Contributors: communicatti, madeinnordeste, laellsr 3 3 Tags: helpers 4 Requires at least: 5. 8.15 Tested up to: 5. 8.16 Requires PHP: 7. 34 Requires at least: 5.9.1 5 Tested up to: 5.9.1 6 Requires PHP: 7.4 7 7 License: https://opensource.org/licenses/GPL-2.0 8 8 License URI: https://opensource.org/licenses/GPL-2.0 9 Stable tag: 1.1.1 79 Stable tag: 1.1.18 10 10 A Toolbelt for Wordpress development 11 11 … … 14 14 15 15 16 = 1.1.1 7=16 = 1.1.18 = 17 17 * Disable emojis. 18 18 * Hide personal info from no admin users profile form -
pxl-tools/trunk/custom/users/hide-personal-options-from-no-admin.php
r2688491 r2688499 2 2 3 3 // Check if is non-administrator user 4 // Case true, remove some profile fields by your css class name4 // Case true, hide some profile fields by your css class name 5 5 if (!current_user_can('administrator')) { 6 6 add_action('personal_options', 'pxl_hide_user_personal_options'); … … 13 13 <script type="text/javascript"> 14 14 jQuery(document).ready(function($) { 15 $('#your-profile .form-table:first, #your-profile h3:first, .yoast, .user-description-wrap, .user-display-name-wrap, .user-url-wrap, h2, .user-pinterest-wrap, .user-myspace-wrap, .user-soundcloud-wrap, .user-tumblr-wrap, .user-wikipedia-wrap ').remove();15 $('#your-profile .form-table:first, #your-profile h3:first, .yoast, .user-description-wrap, .user-display-name-wrap, .user-url-wrap, h2, .user-pinterest-wrap, .user-myspace-wrap, .user-soundcloud-wrap, .user-tumblr-wrap, .user-wikipedia-wrap .user-facebook-wrap .user-instagram-wrap .user-linkedin-wrap .user-twitter-wrap .user-youtube-wrap').hide(); 16 16 }); 17 17 </script> -
pxl-tools/trunk/pxl-tools.php
r2688491 r2688499 10 10 * License: GPL-2.0 11 11 * License URI: https://opensource.org/licenses/GPL-2.0 12 * Version: 1.1.1 712 * Version: 1.1.18 13 13 * 14 14 * -
pxl-tools/trunk/readme.txt
r2688491 r2688499 2 2 Contributors: communicatti, madeinnordeste, laellsr 3 3 Tags: helpers 4 Requires at least: 5. 8.15 Tested up to: 5. 8.16 Requires PHP: 7. 34 Requires at least: 5.9.1 5 Tested up to: 5.9.1 6 Requires PHP: 7.4 7 7 License: https://opensource.org/licenses/GPL-2.0 8 8 License URI: https://opensource.org/licenses/GPL-2.0 9 Stable tag: 1.1.1 79 Stable tag: 1.1.18 10 10 A Toolbelt for Wordpress development 11 11 … … 14 14 15 15 16 = 1.1.1 7=16 = 1.1.18 = 17 17 * Disable emojis. 18 18 * Hide personal info from no admin users profile form
Note: See TracChangeset
for help on using the changeset viewer.