= 0 ) { // A new version that removes a punlic method. return false; } return true; } if ( function_exists( 'as3cf_pro_init' ) ) { // WP Offload S3 Pro. $version = ! empty( $GLOBALS['aws_meta']['amazon-s3-and-cloudfront-pro']['version'] ) ? $GLOBALS['aws_meta']['amazon-s3-and-cloudfront-pro']['version'] : false; if ( ! $version ) { return false; } if ( ! function_exists( 'amazon_web_services_init' ) && version_compare( $version, '1.6' ) < 0 ) { // Old version, plugin Amazon Web Services is required. return false; } if ( version_compare( $version, '2.3' ) >= 0 ) { // A new version that removes a punlic method. return false; } return true; } return false; } if ( imagify_load_as3cf_compat() ) : class_alias( '\\Imagify\\ThirdParty\\AS3CF\\Main', '\\Imagify_AS3CF' ); add_action( 'imagify_loaded', [ \Imagify\ThirdParty\AS3CF\Main::get_instance(), 'init' ], 1 ); endif;