uploads - How to limit the number of images displayed in the media window?

I have a lot of images in my website, so when I open wp-adminupload.php the server slow down.Would be possible to disp

I have a lot of images in my website, so when I open wp-admin/upload.php the server slow down. Would be possible to display only 50 images per time?

I saw there is this similar question, but it works only for the "set featured image" popup.

I would like to apply the limit also to the upload.php window.

How can I achieve that?

Kind regards

I have a lot of images in my website, so when I open wp-admin/upload.php the server slow down. Would be possible to display only 50 images per time?

I saw there is this similar question, but it works only for the "set featured image" popup.

I would like to apply the limit also to the upload.php window.

How can I achieve that?

Kind regards

Share Improve this question edited Dec 17, 2021 at 22:45 FS-GSW 3041 silver badge8 bronze badges asked Dec 17, 2021 at 9:47 sfarzososfarzoso 498 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 2

maybe this other similar question (with a good answer) can help you. Change default screen option value for media items per page (in media library)

And the filter to use is :

function my_edit_media_per_page(){
    $media_per_page = 200; //or whatever you want
    return $media_per_page;
}

add_filter( 'upload_per_page', 'my_edit_media_per_page', 10, 3 );

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744410338a4572843.html

相关推荐

  • uploads - How to limit the number of images displayed in the media window?

    I have a lot of images in my website, so when I open wp-adminupload.php the server slow down.Would be possible to disp

    1天前
    40

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信