You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Below, download the appropriate snippet version
49
-
2.activate or deactivate in your snippets plugin
52
+
2.Activate or deactivate in _Code Snippets_ plugin
50
53
51
54
[**Download .json**](https://github.com/deckerweb/snippets-quicknav/releases/latest/download/ddw-snippets-quicknav.code-snippets.json) version for _Code Snippets_ (free & Pro) just use the "Import" page.
52
55
53
-
--> Please decide for one of both alternatives!
56
+
➔ Please decide for one of both alternatives!
54
57
55
58
#### Minimum Requirements
56
59
* WordPress version 6.7 or higher
@@ -60,7 +63,7 @@ Enjoying the plugin? Feel free to treat me to a cup of coffee ☕🙂 through th
@@ -106,29 +109,30 @@ Just manually: Download the latest Snippet version (see above) and import it in
106
109
107
110
## Frequently Asked Questions
108
111
109
-
### How can I change / tweak things?
112
+
### How can I change / tweak things?
110
113
Please see here under [**Custom Tweaks via Constants**](#custom-tweaks-via-constants) what is possible!
111
114
112
-
### Why is this functionality not baked into Code Snippets itself?
115
+
### Why is this functionality not baked into Code Snippets itself?
113
116
I don't know. Not everything needs to be built-in. That's what plugins are for: those who _need_ this functionality can install and use them. Or better, [just use it as Code Snippet](#installation) in _Code Snippet_ itself. Done :-)
114
117
115
-
### Why did you create this plugin?
118
+
### Why did you create this plugin?
116
119
Because I needed (and wanted!) it myself for the sites I maintain. [Read the backstory here ...](#plugins-backstory)
117
120
118
-
### Why is this plugin not on wordpress.org plugin repository?
121
+
### Why is this plugin not on wordpress.org plugin repository?
119
122
Because the restrictions there for plugin authors are becoming more and more. It would be possible, yes, but I don't want that anymore. The same for limited support forums for plugin authors on .org. I have decided to leave this whole thing behind me.
120
123
121
124
---
122
125
123
126
## Custom Tweaks via Constants
124
127
125
-
### Default capability (aka permission)
128
+
### Default capability (aka permission)
126
129
The intended usage of this plugin is for Administrator users only. Therefore the default capability to see the new Admin Bar node is set to `activate_plugins`. You can change this via the constant `SNQN_VIEW_CAPABILITY` – define that via `wp-config.php` or via Code Snippet plugin:
### Restrict to defined user IDs only (since v1.2.0)
134
+
135
+
### Restrict to defined user IDs only (since v1.2.0)
132
136
You can define an array of user IDs (can also be only _one_ ID) and that way restrict showing the Snippets Admin Bar item only for those users. Define that via `wp-config.php` or via Code Snippet plugin:
That way only you can see it, the other admins can't!
143
147
144
-
### Name of main menu item
148
+
149
+
### Position of main menu item (since v1.3.0)
150
+
You can define an integer value to adjust the menu position of the main menu item. Define that via `wp-config.php` or via _Code Snippets_ plugin:
151
+
```
152
+
define( 'SNQN_MENU_POSITION', 81 );
153
+
```
154
+
This example will place it somewhere after the default "+ New" item. Note: the default value is `999` which puts the item quite on the middle or right side of the Admin Bar.
155
+
156
+
157
+
### Name of main menu item
145
158
The default is just "Snippets" – catchy and short. However, if you don't enjoy "Snippets" you can tweak that also via the constant `SNQN_NAME_IN_ADMINBAR` – define that also via `wp-config.php` or via Code Snippet plugin:
The "snip" icon – aka the scissor logo icon – is awesome and really historic. However, you can use two other alternatives: 1) The Code Snippets company logo (a bit red-ish / blue-ish) or 2) a more neutral "code" logo from Remix Icon (free and open source licensed!). You can also tweak that via a constant in `wp-config.php` or via Code Snippets plugin:
@@ -163,19 +178,22 @@ define( 'SNQN_ICON', 'red_blue' ); // Code Snippets company logo
163
178
define( 'SNQN_ICON', 'remix' ); // code icon by Remix Icon
164
179
```
165
180
166
-
### Disable code snippets library items
181
+
182
+
### Disable code snippets library items
167
183
Removes the "Find Snippets" section
168
184
```
169
185
define( 'SNQN_DISABLE_LIBRARY', 'yes' );
170
186
```
171
187
172
-
### Disable footer items (Links & About)
188
+
189
+
### Disable footer items (Links & About)
173
190
Removes the "Links" & "About" sections
174
191
```
175
192
define( 'SNQN_DISABLE_FOOTER', 'yes' );
176
193
```
177
194
178
-
### **Enable** "Expert Mode"
195
+
196
+
### **Enable** "Expert Mode"
179
197
Nothing really fancy, just some additional links for coders:
Note: Support for _some_ additional stuff in that mode may come in future.
189
207
190
-
### **Fair Play:** Enable "free CS free" – to remove some promo stuff ...
208
+
209
+
### **Fair Play:** Enable "free CS free" – to remove some promo stuff ...
191
210
If you want the Pro promotions go away, use the following snippet ... or just purchase the Pro version to support the developers. Thank you in advance! (And thanks to the Code Snippets team for making this awesome tool for us site builders and developers!)
0 commit comments