Remove Dashboard Access - Version 1.1.2

Version Description

  • Bump tested-up-to to 4.1.0
  • Miscellaneous readme changes.
Download this release

Release Info

Developer DrewAPicture
Plugin Icon 128x128 Remove Dashboard Access
Version 1.1.2
Comparing to
See all releases

Code changes from version 1.1.1 to 1.1.2

Files changed (2) hide show
  1. readme.txt +28 -18
  2. remove-dashboard-access.php +1 -1
readme.txt CHANGED
@@ -2,15 +2,15 @@
2
  Contributors: DrewAPicture
3
  Donate link: http://www.werdswords.com
4
  Tags: dashboard, access, users, administration
5
- Requires at least: 3.1
6
- Tested up to: 4.0
7
- Stable tag: 1.1.1
8
 
9
  Allows you to disable Dashboard access for users of a specific role or capability. Disallowed users are redirected to a chosen URL.
10
 
11
  == Description ==
12
 
13
- * Limit Dashboard access to Administrators only, Admins + Editors, Admins + Editors + Authors, or limit by specific capability.
14
  * Choose your own redirect URL
15
  * Optionally allow user profile access
16
  * Optionally display a message on the login screen
@@ -31,38 +31,39 @@ This plugin is in active development <a href="https://github.com/DrewAPicture/re
31
 
32
  Users lacking the chosen capability or role(s) will be redirected to the URL set in Settings > Dashboard Access.
33
 
34
- = Why haven't you added an option to disable the WordPress Toolbar?
35
 
36
  The Toolbar contains certain important links (even for disallowed users) such as for accessing to the profile editor and/or logging out. Plus, there are many plugins out there for disabling the Toolbar if you really want to.
37
 
38
- = Can I disable the redirection/profile-editing controls without disabling the plugin?
39
 
40
  No. Disable the plugin if you don't wish to leverage the functionality.
41
 
42
  == Other Notes ==
43
 
44
- <strong>Capabilities</strong>
45
 
46
  * You can limit Dashboard access to Admins only, Editors or above, Authors or above, or by selecting a capability. More information on WordPress' default roles and capabilities can be found here: http://codex.wordpress.org/Roles_and_Capabilities
47
 
48
- <strong>User Profile Access</strong>
49
 
50
  * You can optionally allow all users the ability to edit their profiles in the Dashboard. Users lacking the chosen capability won't be able to access any other sections of the Dashboard.
51
 
52
- <strong>Login Message</strong>
53
 
54
  * Supply a message to display on the login screen. Leaving this blank disables the message.
55
 
56
- <strong>Hiding other plugins/themes' Toolbar menus</strong>
57
 
58
  * Remove Dashboard Access removes some built-in WordPress Toolbar menus by default, but can be extended to hide menus from other plugins or themes via two filters: `rda_toolbar_nodes` (viewing from the admin), and `rda_frontend_toolbar_nodes` (viewing from the front-end).
59
 
60
- How to find the menu (node) id:
61
 
62
  * In the HTML page source, look for the `<li>` container for the menu node you're targeting. It should take the form of `<li id="wp-admin-bar-SOMETHING">`
63
  * In `<li id="wp-admin-bar-SOMETHING">`, you want the "SOMETHING" part.
64
 
65
- How to filter the disallowed Toolbar nodes on the front-end:
 
66
  `
67
  /**
68
  * Filter hidden Toolbar menus on the front-end.
@@ -70,21 +71,25 @@ How to filter the disallowed Toolbar nodes on the front-end:
70
  * @param array $ids Toolbar menu IDs.
71
  * @return array (maybe) filtered front-end Toolbar menu IDs.
72
  */
73
- function hide_some_toolbar_menu( $ids ) {
74
  $ids[] = 'SOMETHING';
75
  return $ids;
76
  }
77
- add_filter( 'rda_frontend_toolbar_nodes', 'hide_some_toolbar_menu' );
78
  `
79
 
80
  <strong>Common plugin Toolbar menus and their ids:</strong>
81
- | <a href="http://wordpress.org/extend/plugins/jetpack/">Jetpack by WordPress.com</a> (notifications): 'notes
82
- | <a href="http://wordpress.org/extend/plugins/wordpress-seo/">WordPress SEO by Yoast</a>: 'wpseo-menu'
83
- | <a href="http://wordpress.org/extend/plugins/w3-total-cache/">W3 Total Cache</a>: 'w3tc'
 
84
 
85
  <strong>Debug Mode</strong>
86
 
87
- To view debugging information on the Settings > Reading screen, visit yoursite.com/options-general.php?page=dashboard-access&rda_debug=1
 
 
 
88
 
89
  == Screenshots ==
90
 
@@ -94,6 +99,11 @@ To view debugging information on the Settings > Reading screen, visit yoursite.c
94
 
95
  == Changelog ==
96
 
 
 
 
 
 
97
  = 1.1.1 =
98
 
99
  Bug Fix:
2
  Contributors: DrewAPicture
3
  Donate link: http://www.werdswords.com
4
  Tags: dashboard, access, users, administration
5
+ Requires at least: 3.1.0
6
+ Tested up to: 4.1.0
7
+ Stable tag: 1.1.2
8
 
9
  Allows you to disable Dashboard access for users of a specific role or capability. Disallowed users are redirected to a chosen URL.
10
 
11
  == Description ==
12
 
13
+ * Limit Dashboard access to admins only, admins + editors, admins + editors + authors, or limit by specific capability.
14
  * Choose your own redirect URL
15
  * Optionally allow user profile access
16
  * Optionally display a message on the login screen
31
 
32
  Users lacking the chosen capability or role(s) will be redirected to the URL set in Settings > Dashboard Access.
33
 
34
+ = Why haven't you added an option to disable the WordPress Toolbar? =
35
 
36
  The Toolbar contains certain important links (even for disallowed users) such as for accessing to the profile editor and/or logging out. Plus, there are many plugins out there for disabling the Toolbar if you really want to.
37
 
38
+ = Can I disable the redirection/profile-editing controls without disabling the plugin? =
39
 
40
  No. Disable the plugin if you don't wish to leverage the functionality.
41
 
42
  == Other Notes ==
43
 
44
+ <strong>Capabilities:</strong>
45
 
46
  * You can limit Dashboard access to Admins only, Editors or above, Authors or above, or by selecting a capability. More information on WordPress' default roles and capabilities can be found here: http://codex.wordpress.org/Roles_and_Capabilities
47
 
48
+ <strong>User Profile Access:</strong>
49
 
50
  * You can optionally allow all users the ability to edit their profiles in the Dashboard. Users lacking the chosen capability won't be able to access any other sections of the Dashboard.
51
 
52
+ <strong>Login Message:</strong>
53
 
54
  * Supply a message to display on the login screen. Leaving this blank disables the message.
55
 
56
+ <strong>Hiding other plugins/themes' Toolbar menus:</strong>
57
 
58
  * Remove Dashboard Access removes some built-in WordPress Toolbar menus by default, but can be extended to hide menus from other plugins or themes via two filters: `rda_toolbar_nodes` (viewing from the admin), and `rda_frontend_toolbar_nodes` (viewing from the front-end).
59
 
60
+ <strong>How to find the menu (node) id:</strong>
61
 
62
  * In the HTML page source, look for the `<li>` container for the menu node you're targeting. It should take the form of `<li id="wp-admin-bar-SOMETHING">`
63
  * In `<li id="wp-admin-bar-SOMETHING">`, you want the "SOMETHING" part.
64
 
65
+ <strong>How to filter the disallowed Toolbar nodes on the front-end:</strong>
66
+
67
  `
68
  /**
69
  * Filter hidden Toolbar menus on the front-end.
71
  * @param array $ids Toolbar menu IDs.
72
  * @return array (maybe) filtered front-end Toolbar menu IDs.
73
  */
74
+ function wpdocs_hide_some_toolbar_menu( $ids ) {
75
  $ids[] = 'SOMETHING';
76
  return $ids;
77
  }
78
+ add_filter( 'rda_frontend_toolbar_nodes', 'wpdocs_hide_some_toolbar_menu' );
79
  `
80
 
81
  <strong>Common plugin Toolbar menus and their ids:</strong>
82
+
83
+ * <a href="http://wordpress.org/extend/plugins/jetpack/">Jetpack by WordPress.com</a> (notifications) – 'notes'
84
+ * <a href="http://wordpress.org/extend/plugins/wordpress-seo/">WordPress SEO by Yoast</a> 'wpseo-menu'
85
+ * <a href="http://wordpress.org/extend/plugins/w3-total-cache/">W3 Total Cache</a> – 'w3tc'
86
 
87
  <strong>Debug Mode</strong>
88
 
89
+ To view debugging information on the Settings > Reading screen, visit:
90
+ `
91
+ example.com/options-general.php?page=dashboard-access&rda_debug=1
92
+ `
93
 
94
  == Screenshots ==
95
 
99
 
100
  == Changelog ==
101
 
102
+ = 1.1.2 =
103
+
104
+ * Bump tested-up-to to 4.1.0
105
+ * Miscellaneous readme changes.
106
+
107
  = 1.1.1 =
108
 
109
  Bug Fix:
remove-dashboard-access.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Remove Dashboard Access
4
  * Plugin URI: http://www.werdswords.com
5
  * Description: Removes Dashboard access for certain users based on capability.
6
- * Version: 1.1.1
7
  * Author: Drew Jaynes (DrewAPicture)
8
  * Author URI: http://www.drewapicture.com
9
  * License: GPLv2
3
  * Plugin Name: Remove Dashboard Access
4
  * Plugin URI: http://www.werdswords.com
5
  * Description: Removes Dashboard access for certain users based on capability.
6
+ * Version: 1.1.2
7
  * Author: Drew Jaynes (DrewAPicture)
8
  * Author URI: http://www.drewapicture.com
9
  * License: GPLv2