Filters the REST avatar sizes. Use this filter to adjust the array of sizes returned by the `rest_get_avatar_sizes` function. @since 4.4.0 @param int[] $sizes An array of int values that are the pixel sizes for avatars. Default `[ 24, 48, 96 ]`.
array( 24, 48, 96
Sortie :
@param int[] $sizes An array of int values that are the pixel sizes for avatars.
// Modifier la valeur avec le filtre 'rest_avatar_sizes'
add_filter('rest_avatar_sizes', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(array( 24) {
// Modifier la valeur
return array( 24;
}
Chargement des actualités...