Skip to content

Simplify your WordPress. Removes bloat and provides native enhancements.

License

Notifications You must be signed in to change notification settings

jsgm/perpetual-wp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perpetual WP Logo

Note

Once you've installed the plugin, all updates are automatically installed from GitHub. Please note, this plugin is not available in the WordPress.org repository.

Build License Last release Last commit

What is Perpetual WP?

Perpetual WP removes bloat and delivers straightforward enhancements to your WordPress—no configuration required.

While alternatives like ClassicPress, which is a full fork of WordPress, Perpetual WP takes a unique approach as a plugin, ensuring full compatibility with the latest version of WordPress.

Features

Perpetual WP disables unnecessary features to keep the admin panel cleaner and improve performance.

Description
disable/hello-dolly Automatically deletes "Hello Dolly" from fresh installs. To use it, place it in mu-plugins.
disable/initial-content Deletes the default content —"Hello world!", "Sample Page," and "Privacy Policy"—.
disable/admin-email-verification Disable admin email verifications. For more details, check this.
disable/capital-p-dangit Prevents "Wordpress" from being converted to "WordPress".
disable/emojis
disable/generators
disable/oembed
disable/post-by-email
disable/post-revisions Disables posts revisions by default.
disable/privacy-tools
disable/update-services
disable/wp-sitemaps
disable/xmlrpc Blocks xmlrpc.php.
disable/import-export
disable/shortlinks
disable/guess-permalinks
disable/site-health Disables Site Health by default and makes it optional.
disable/wpautop Prevent WordPress from adding extra <p></p> tags to the content.
disable/wptexturize Avoid converting quotation marks " into symbols like »
disable/wp-favicon Restores the default /favicon.ico behaviour when no site icon is present.

Prevent a feature from being disabled

WordPress use cases can vary greatly, and it’s possible that you may need some of the features that are disabled by the plugin.

Note

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.

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.

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.

add_filter("pw_modules", function($modules){
  // Do not remove privacy tools and emojis.
  $keep = ["disable/privacy-tools", "disable/emojis"];
  return array_diff($modules, $keep);
});

Functions

Perpetual WP also introduces a few functions for developers. All functions will be prefixed with pw_ instead the default wp_.

Function Description
pw_count_hooks(string $tag, int $priority): int Returns the total number of hooks registered for a filter or action.
If no priority is specified, it returns the count of all hooks across all priority levels.
pw_is_crawler(string $user_agent): bool Checks if the given $user_agent belongs to a known crawler.
If no $user_agent is provided, the function checks the current user's agent string.

About

Simplify your WordPress. Removes bloat and provides native enhancements.

Topics

Resources

License

Stars

Watchers

Forks

Languages