Fix media library load issues with a high image count in Imagify

Fix media library load issues with a high image count in Imagify on child sites.

Snippet Type

Execute on Child Sites

Snippet

function pfx_limit_imagify_optimize_count( $count ) {
  return 1;
}
add_filter( 'imagify_count_optimized_attachments', 'pfx_limit_imagify_optimize_count' );
add_filter( 'imagify_count_attachments', 'pfx_limit_imagify_optimize_count' );
add_filter( 'imagify_count_unoptimized_attachments', 'pfx_limit_imagify_optimize_count' );
add_filter( 'imagify_count_saving_data', 'pfx_limit_imagify_optimize_count' );
add_filter( 'imagify_count_error_attachments', 'pfx_limit_imagify_optimize_count' );
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.