How to apply ImageMagick effect (selective blur) to all WordPress uploaded images automatically ? I have Imagick installed
问题 I don't really know how to apply php code to WordPress manually. I have found some script but don't know where and how to put them. public Imagick::selectiveBlurImage ( float $radius , float $sigma , float $threshold [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool <?php function selectiveBlurImage($imagePath, $radius, $sigma, $threshold, $channel) { $imagick = new \Imagick(realpath($imagePath)); $imagick->selectiveBlurImage($radius, $sigma, $threshold, $channel); header("Content-Type: