Transient Cleaner
Clean expired transients from your options table. The original and best! Transient housekeeping was added to the core of WordPress after version 5.8. However, I have decided to open up this plugin to all versions to allow for manual transient cleaning. Longer term I am working on a new version of the plugin, designed specifically for all WordPress releases. Tested up to PHP 8.2 Fully complies with WordPress coding standards Compliant with the stronger WordPress VIP coding standards, as well as compatibility with their platform Community plugin – visit the Github page to get involved with the latest code development, request enhancements and report issues “Transients are a simple and standardized way of storing cached data in the WordPress database temporarily by giving it a custom name and a timeframe after which it will expire and be deleted.” Unfortunately, expired transients only get deleted when you attempt to access them. If you don’t access the transient then, even though it’s expired, WordPress will not remove it. This is a known “issue” but due to reasons, which are explained in the FAQ, this has not been adequately resolved. Why is this a problem? Transients are often used by plugins to “cache” data (my own plugins included). Because of this it means that expired data can be left and build up, resulting in a bloated database table. Meantime, this plugin is the hero that you’ve been waiting for. Simply activate the plugin, sit back and enjoy a much cleaner, smaller options table. It also adds the additional recommendation that after a database upgrade all transients will be cleared down. The Settings Screen Within Administration -> Tools -> Transients an options screen exists allowing you to tweak when you’d like cleaning to happen, including the ability to perform an ad-hoc run, and when you’d like the to be automatically scheduled. You can even request an optimization of the options table to give your system a real “pep”! Running in Lite mode A “lite” mode is available. By activating this the options screen will no longer appear and default settings will be used. The advantage? Improved performance to Admin and, especially if you’re running multi-site, no chance of anybody “tinkering” with the settings. To activate, use the following… define( 'TC_LITE', true ); This should be added to your wp-config.php file. Using hooks If you’re the type of odd person who likes to code for WordPress (really?) then I’ve added a couple of hooks so you can call our rather neat cleaning functions… housekeep_transients – this will clear down any expired transients clear_all_transients – this will remove any and all transients, expired or otherwise Acknowledgements I’d like to thank WordPress Developer Andrew Nacin for his early discussion on this. Also, I’d like to acknowledge the useful article at Everybody Staze for ensuring the proposed solution made sense, and W-Shadow.com for the cleaning code. Iconography is courtesy of the very talented Janki Rathod.
Top keywords
- transients10×2.00%
- wordpress8×1.60%
- expired6×1.20%
- options5×1.00%
- cleaning4×0.80%
- table4×0.80%
- added3×0.60%
- code3×0.60%
- data3×0.60%
- database3×0.60%
- expired transients3×0.60%
- options table3×0.60%
WPC Product Options for WooCommerce
WPC Product Options for WooCommerce will become another essential plugin for any kind of online stores, which brings about the power of adjusting prices with highly customizable additional fields for simple products. Users can insert up to 18+ different types of custom add-ons to simple products so that customers can easily configure their preferences. Online stores that emphasize personalization & customized designs, take in on-demand orders, and have sophisticated products with complex configurations will benefit from this plugin the most. Three modes are available: Global, Override, and Disable. Users can configure as many premade fields as they want and use them as global add-ons to insert to multiple products at a time using product types, categories, tags, brands, attributes, etc. In Override, custom add-ons for individual products can be specified easily in the same way as Global add-ons. Especially, users can use the Shortcode field to insert anything they want using short-code, for example, a Countdown Timer for flash sale counting or size chart. Another special thing about WPC Product Options for WooCommerce is that users can define a new custom price formula that suits their products well. There are some special goods and services requiring special pricing for add-ons, and this is available right in our plugin. Live demo Visit our live demo here to see how this plugin works. Key Features 23+ type of custom add-ons and fields: text, date & time, file upload, etc. Global add-ons for product types, categories, tags, brands, attributes, etc. Customize individual product add-ons or disable global add-ons completely Add-on pricing: Flat fee (amount or %), quantity synced & custom formula Nice picker for date, time, date & time, data range and colors Drag and drop builder – easy to move the add-on fields around Shortcode supported for inserting anything, i.e. countdown clock, size chart Highly configurable fields: title, required, description, price, default value, limits Compatible with most common WordPress themes and WooCommerce plugins Field Types Text Textarea Email Number File Upload Radio (single selection) Image Radio (single selection) Color Radio (single selection) Checkbox (multiple selection) Image Checkbox (multiple selection) Color Checkbox (multiple selection) Dimensions (multiple dimensions, e.g., width, height, length, etc.) Select (single selection) Color Picker Date Picker Date Time Picker Date Range Picker Timer Picker Heading Paragraph Separator Spacer Shortcode Additional Prices There are three types of prices for add-ons: flat fee, quantity synced, and custom formula. Flat fee: Users can use a number to set a fixed price for each field or enter a percentage, for example, 10% – the additional price will be 10% of the main price. Quantity synced: When customers increase or decrease the quantity of the main product, the Quantity synced price means the unit price, so it will be multiplied by the chosen value of the main quantity. Custom formula (Premium Version): Users can define their own price formula. Use p for price, q for quantity, v for value, and l for length. Need more features? Please try other plugins from us: WPC Product Timer for WooCommerce WPC Product Quantity for WooCommerce WPC Price by User Role for WooCommerce WPC Price by Quantity for WooCommerce WPC AJAX Add to Cart for WooCommerce