Changeset 2550358
- Timestamp:
- 06/18/2021 11:14:12 AM (5 years ago)
- Location:
- hide-wp-front-admin-bar/trunk
- Files:
-
- 2 edited
-
hide-wp-front-admin-bar.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
hide-wp-front-admin-bar/trunk/hide-wp-front-admin-bar.php
r1632634 r2550358 3 3 * Plugin Name: Hide WP Front Admin Bar 4 4 * Description: Hide WordPress Admin Bar, Hide admin bar for specific users role, Hide WordPress admin bar for all user role, Hide admin bar from front end, Remove admin bar 5 * Version: 1.0. 05 * Version: 1.0.1 6 6 * Author: Pradeep Singh 7 7 * Author URI: https://github.com/pradeepsinghweb … … 89 89 $_hide_admin_bar_settings['_user_roles'] = $data['_user_roles']; 90 90 if($_hide_admin_bar_settings['_hide_admin_bar'] == 'ALL') unset($_hide_admin_bar_settings['_user_roles']); 91 if( update_option('_hide_admin_bar_settings',serialize($_hide_admin_bar_settings)))91 if(get_option('_hide_admin_bar_settings') && update_option('_hide_admin_bar_settings',serialize($_hide_admin_bar_settings))){ 92 92 return array('status'=>true,'msg'=>"Admin Bar settings have been saved successfully."); 93 else 93 } 94 elseif(get_option('_hide_admin_bar_settings',serialize($_hide_admin_bar_settings))){ 95 return array('status'=>true,'msg'=>"Admin Bar settings have been saved successfully."); 96 } 97 else{ 94 98 return array('status'=>false,'msg'=>"Error occurred! Admin Bar settings are not updated."); 99 } 95 100 } 96 101 return array('status'=>false,'msg'=>"Error occurred!"); -
hide-wp-front-admin-bar/trunk/readme.txt
r1632925 r2550358 3 3 Donate link: https://www.paypal.me/pradeepsinghweb 4 4 Tags: adminbar, hide, hide WordPress admin bar, hide admin bar for specific users role, hide WordPress admin bar for all users, hide admin bar from front end, remove admin bar, hide WP admin bar 5 Requires at least: 3. 16 Tested up to: 4.7.35 Requires at least: 3.5 6 Tested up to: 5.7.2 7 7 Stable tag: trunk 8 8
Note: See TracChangeset
for help on using the changeset viewer.