How do bypass / reset counter for "Smart Image Resize"? It limits to resize 150 images only.

View QuestionsCategory: QuestionsHow do bypass / reset counter for "Smart Image Resize"? It limits to resize 150 images only.
admin Staff asked 5 years ago

This plugin – https://wordpress.org/plugins/smart-image-resize/ The free version only allows 150 images processed. After that it requires a free version.

1 Answers
Best Answer
admin Staff answered 5 years ago

Just change 1 line on this file: smart-image-resize/src/functions.php 
Search for the function “wp_sir_is_quota_exceeded” make sure it returns false.

if ( ! function_exists( 'wp_sir_is_quota_exceeded' ) ) {
    function wp_sir_is_quota_exceeded()
    {
        $count_total = wp_sir_processed_quota();

        $value = $count_total > 150; $value = false;