Filters whether to short-circuit loading optimization attributes. Returning an array from the filter will effectively short-circuit the loading of optimization attributes, returning that value instead.
false, $tag_name, $attr, $context
Sortie :
@param array|false $loading_attrs False by default, or array of loading optimization attributes to short-circuit. @param string $tag_name The tag name. @param array $attr Array of the attributes for the tag. @param string $context Context for the element for which the loading optimization attribute is requested.
// Modifier la valeur avec le filtre 'pre_wp_get_loading_optimization_attributes'
add_filter('pre_wp_get_loading_optimization_attributes', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(false) {
// Modifier la valeur
return false;
}
Chargement des actualités...