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
Copy file name to clipboardexpand all lines: README.md
+48
Original file line number
Diff line number
Diff line change
@@ -143,10 +143,58 @@ Filters how many log items to store. Items are stored in array saved to the opti
143
143
144
144
Define `TENUP_DISABLE_ACTIVITYLOG` as `true` to disable Activity Log.
145
145
146
+
146
147
### Environment Indicator
147
148
148
149
To enhance user awareness and minimize the risk of making unintended changes, 10up Experience includes a visual indicator integrated into the admin bar. This feature clearly displays which environment (e.g., development, staging, production) the user is currently working in.
149
150
151
+
152
+
### Comments
153
+
154
+
10up Experience includes a feature to disable comments across the site. This feature can be enabled or disabled in `Settings > General`. It is disabled by default.
155
+
156
+
On top of disabling the comment form, this feature removes the following:
157
+
158
+
- Comments from the admin menu.
159
+
- Comment blocks from the post editor.
160
+
- Comments from the admin bar.
161
+
162
+
#### Constants
163
+
164
+
-`TENUP_DISABLE_COMMENTS`
165
+
166
+
Define this as `true` to force disable comments or `false` to enable comments from a config file.
167
+
Setting this constant will disable the UI for enabling/disabling comments in the admin.
168
+
169
+
#### Filters
170
+
171
+
-`tenup_experience_disable_comments`
172
+
173
+
Filters whether to disable comments. Default is `false`.
174
+
Defining this filter will disable the UI for enabling/disabling comments in the admin.
Filters the list of blocks that should be disallowed when comments are disabled. This is useful when core adds new blocks that aren't covered by the default list.
179
+
180
+
The default list of disallowed blocks is:
181
+
182
+
-`core/comment-author-name`
183
+
-`core/comment-content`
184
+
-`core/comment-date`
185
+
-`core/comment-edit-link`
186
+
-`core/comment-reply-link`
187
+
-`core/comment-template`
188
+
-`core/comments`
189
+
-`core/comments-pagination`
190
+
-`core/comments-pagination-next`
191
+
-`core/comments-pagination-numbers`
192
+
-`core/comments-pagination-previous`
193
+
-`core/comments-title`
194
+
-`core/post-comments`
195
+
-`core/post-comments-form`
196
+
-`core/latest-comments`
197
+
150
198
## Support Level
151
199
152
200
**Active:** 10up is actively working on this, and we expect to continue work for the foreseeable future including keeping tested up to the most recent version of WordPress. Bug reports, feature requests, questions, and pull requests are welcome.
0 commit comments