widget_block_dynamic_classname

FILTER wp-includes\widgets\class-wp-widget-block.php (ligne 167) github
The classname used in the block widget's container HTML. This can be set according to the name of the block contained by the block widget.

Paramètres

Entrée :
$classname, $block_name
Sortie :
@param string $classname  The classname to be used in the block widget's container HTML,
@param string $block_name The name of the block contained by the block widget,

Utilisation

// Modifier la valeur avec le filtre 'widget_block_dynamic_classname'
add_filter('widget_block_dynamic_classname', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($classname) {
    // Modifier la valeur
    return $classname;
}

Actualités

Chargement des actualités...