📜  wordpress 设置图片质量 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:55.885000             🧑  作者: Mango

代码示例1
// ADD TO FUNCTIONS.PHP FILE
////// SETTING IMAGE COMPRESSION FOR JPG'S

add_filter(‘jpeg_quality’, function($arg){return 100;});

// YOU CAN CHANGE "100" TO ANY NUMBER 1-100 (100 BEING HIGHEST)