Get widget id plus scheme/protocol to prevent serving mixed content from (persistently) cached widgets.
$widget_id_for_cache
Sortie :
@param string $widget_id Id of the cached widget. @param string $scheme Scheme for the widget id. @return string Widget id including scheme/protocol.
// Modifier la valeur avec le filtre 'woocommerce_cached_widget_id'
add_filter('woocommerce_cached_widget_id', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($widget_id_for_cache) {
// Modifier la valeur
return $widget_id_for_cache;
}
Chargement des actualités...