Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在设置 - >媒体是设置最大图像尺寸的设置,但我需要设置最小尺寸可能吗?或者也许是一些功能
WordPress Stack Exchange 网站上有一个问题,其中包含一些有用的信息——您需要添加一个过滤器wp_handle_upload_prefilter,然后添加一个函数来检查尺寸:
wp_handle_upload_prefilter
add_filter('wp_handle_upload_prefilter','tc_handle_upload_prefilter');
这是问题:https ://wordpress.stackexchange.com/questions/28359/how-to-require-a-minimum-image-dimension-for-uploading