Transient names can sometimes get truncated without you realising.
This plugin provides a simple function you can call which will ensure your transient names will always be short enough to avoid being truncated.
<?php $safe_transient_name = get_safe_transient_name( 'your_transient_name_which_might_be_too_long' ); ?>
safe-transient-namesfolder to your
Activate the “Safe Transient Names” plugin in your WordPress administration interface.
<?php $safe_transient_name = get_safe_transient_name( 'your_transient_name' ); ?>anywhere in your code to get a safe name for your transient.
Reserved for FAQ
Reserved for FAQ answer 🙂
Contributors & Developers
“Safe Transient Names” is open source software. The following people have contributed to this plugin.
Interested in development?
- Added filter to change value of limit
- Initial version