WP Smush Pro v3.0.1 Integration with WP Offload Media Pro v2.0

I'm looking to integrate the WP Smush Pro v3.0.1 plugin with WP Offload Media Pro v2.0. After running the install and setup I noticed that the plugin does not recognize that the WP Offload Media Pro plugin is installed (WP Offload Media Pro is installed in our setup as a must-use plugin). I noticed in wp-smush-pro/core/integrations/class-wp-smush-s3.php:26 there is a check to see if the 'as3cf_init' function exists, however, this function does not exist in the WP Offload Media Pro plugin (an equivalent funciton 'as3cf_pro_init' does exist and is the main function that is ran for the plugin in the core 'init' hook).

What would be the best way way to integrate the two plugins together?

  • Nithin
    • Support Wizard

    Hi Tech Admin,

    This is something which our developers are aware of, and it should be fixed in the next plugin updated asap. In the mean while, could you please update the file located in /wp-content/plugins/wp-smush-pro/core/integrations/class-wp-smush-s3.php file

    On line 26 replace:

    $this->enabled = function_exists( 'as3cf_init' );


    $this->enabled = function_exists( 'as3cf_init' ) || function_exists( 'as3cf_pro_init' );

    And see whether it works fine?


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.