dashboard_primary_feed

FILTER wp-admin\includes\dashboard.php (ligne 1547) github
Filters the primary feed URL for the 'WordPress Events and News' dashboard widget.

Paramètres

Entrée :
__( 'https://wordpress.org/news/feed/'
Sortie :
@param string $url The widget's primary feed URL.

Utilisation

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

function ma_fonction_filtre(__( 'https://wordpress.org/news/feed/') {
    // Modifier la valeur
    return __( 'https://wordpress.org/news/feed/';
}

Actualités

Chargement des actualités...