Unable to filter the buffer before being saved locally into cache
-
Hi,
I’m the developer of WP Hide plugin https://www.ads-software.com/plugins/wp-hide-security-enhancer/ currently with +60000 active users.Our code helps to change default WordPress assets URLs like –domain–/wp-content/themes/my-theme/style.css and –domain–/wp-includes/js/wp-emoji-release.min.js to something else ( e.g. –domain–/custom-slug/style.css and –domain–/inc/wp-emoji-release.min.js). The problem is, when using your plugin, there is no filter available on your side which we can use in our code to change those URLs with customized ones.
There is an easy approach for this, you should add a filter on your code which we can use to filter the content, before is being saved locally. So at /classes/autoptimizeCache.php at function cache(), at the top of the function code can you add a filter like this:$data = apply_filters( ‘autoptimize_optimized_to_cache’ , $data, $mime );
Thanks
- The topic ‘Unable to filter the buffer before being saved locally into cache’ is closed to new replies.