Skip to content

Commit 1e0ecdb

Browse files
authored
Update README.md
1 parent afdf35c commit 1e0ecdb

File tree

1 file changed

+39
-3
lines changed

1 file changed

+39
-3
lines changed

README.md

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,51 @@ While alternatives like [ClassicPress](https://classicpress.net), which is a ful
2020
## Disabled features
2121
**Perpetual WP** disables unnecessary features to keep the admin panel cleaner and improve performance.
2222

23+
||Description|
24+
|--|--|
25+
|`disable/hello-dolly`|Automatically deletes "Hello Dolly" from fresh installs. To use it, place it in `mu-plugins`.|
26+
|`disable/initial-content`|Deletes the default content —"Hello world!", "Sample Page," and "Privacy Policy"—.|
27+
|`disable/admin-email-verification`|Disable admin email verifications. For more details, [check this](https://make.wordpress.org/core/2019/10/17/wordpress-5-3-admin-email-verification-screen/).|
28+
|`disable/capital-p-dangit`|Prevents "Wordpress" from being converted to "WordPress".|
29+
|`disable/emojis`||
30+
|`disable/generators`|
31+
|`disable/oembed`|
32+
|`disable/post-by-email`|
33+
|`disable/post-revisions`|
34+
|`disable/privacy-tools`|
35+
|`disable/update-services`|
36+
|`disable/wp-sitemaps`|
37+
|`disable/xmlrpc`|
38+
|`disable/import-export`|
39+
|`disable/shortlinks`|
40+
|`disable/guess-permalinks`|
41+
|`disable/site-health`|Disables Site Health by default and makes it optional.|
42+
|`disable/wpautop`|Prevent WordPress from adding extra `<p></p>` tags to the content.|
43+
|`disable/wptexturize`|Avoid converting quotation marks `"` into symbols like `»`|
44+
|`disable/wp-favicon`|Restores the default `/favicon.ico` behaviour when no site icon is present.|
45+
2346
### Prevent a feature from being disabled
24-
WordPress use cases can vary greatly, and it’s possible that you may need some of the features that are disabled.
47+
WordPress use cases can vary greatly, and it’s possible that you may need some of the features that are disabled by the plugin.
48+
49+
> [!NOTE]
50+
> **Perpetual WP** honors your choices whenever possible. Depending on the feature, you will be able to directly modifying it in `Settings > General`, creating a constant in `wp-config.php` or just using the `pw_modules` filter.
2551
26-
**Perpetual WP** honors your choices whenever possible, and in other cases, you can modify the settings through wp-admin under `Settings > General`. For instance, while WordPress defaults to enabling post revisions with `WP_POST_REVISIONS` set to true, this plugin will automatically set it to `false` unless you specify a different value in your wp-config.php file.
52+
For instance, while WordPress defaults to enabling post revisions with `WP_POST_REVISIONS` set to true, this plugin will automatically set it to `false` unless you define a different value in your `wp-config.php` file.
2753

2854
For any other cases, you can use the filter `pw_modules`. This allows you to disable any feature via a child theme or directly by other plugin developers, preventing undesired behaviours.
55+
```php
56+
add_filter("pw_modules", function($modules){
57+
// Do not remove privacy tools and emojis.
58+
$keep = ["disable/privacy-tools", "disable/emojis"];
59+
return array_diff($modules, $keep);
60+
});
61+
```
62+
63+
## Enhanced security by default
64+
`TO-DO`
2965

3066
## Functions
31-
Perpetual-wp also introduces a few functions for developers. All functions will be prefixed with `pw_` instead the default `wp_`.
67+
Perpetual WP also introduces a few functions for developers. All functions will be prefixed with `pw_` instead the default `wp_`.
3268

3369
Function|Description
3470
---|---

0 commit comments

Comments
 (0)