This repository contains a collection of useful custom snippets for WordPress websites. These snippets are designed to add functionality or modify existing features in WordPress.
- Choose the snippet you want to use.
- Copy the code from the respective file.
- Paste the code into your theme's
functions.php
file or in a site-specific plugin.
Note: It's recommended to use a child theme or a site-specific plugin to add custom code to your WordPress site. This ensures that your modifications won't be lost when updating your theme.
custom-login-logo.php
: Replace the default WordPress login page logo with your own.disable-xmlrpc.php
: Disable XML-RPC functionality for improved security.add-custom-dashboard-widget.php
: Add a custom widget to the WordPress dashboard.modify-excerpt-length.php
: Change the default excerpt length for posts.add-custom-image-size.php
: Add a new custom image size for your theme.
Feel free to submit pull requests with your own custom snippets. Please ensure that your code is well-commented and follows WordPress coding standards.
This project is licensed under the MIT License - see the LICENSE file for details.