Aller au contenu Accéder à la navigation
Retour au support

Filtrer la taille des images à la une des publications dans le flux RSS

Nom du crochet
seopress_rss_post_thumb_size
Version requise
6.8
add_filter('seopress_rss_post_thumb_size', 'sp_rss_post_thumb_size');
function sp_rss_post_thumb_size($size) {
//Will be used with wp_get_attachment_image_src() https://developer.wordpress.org/reference/functions/wp_get_attachment_image_src/
$size = 'thumbnail'; //Accepts any registered image size name (thumbnail, medium, large, full or custom size name), or an array of width and height values in pixels (in that order).
return $size;
}
Comment utiliser les hooks de SEOPress