a las URLs de avatar servidas desde * uploads/avatares/autores/autor-.png. Como al actualizar la foto se * reescribe el MISMO fichero, sin esto el navegador/Cloudflare siguen sirviendo * la versión cacheada. Corre tras el filtro de fea-homepage (prioridad 20). */ if (!defined('ABSPATH')) exit; add_filter('get_avatar_url', function ($url, $id_or_email, $args) { if (!is_string($url) || strpos($url, '/avatares/autores/autor-') === false) return $url; $rel = preg_replace('~\?.*$~', '', substr($url, strpos($url, '/avatares/'))); $path = wp_get_upload_dir()['basedir'] . $rel; if (file_exists($path)) $url = add_query_arg('v', filemtime($path), $url); return $url; }, 20, 3);