wp_targeted_link_rel

FUNCTION wp-includes\formatting.php (ligne 3315) github
Adds `rel="noopener"` to all HTML A elements that have a target.

Paramètres

Entrée :
$text
Sortie :
@param string $text Content that may contain HTML A elements.
@return string Converted content.

Utilisation

// Utilisation de la fonction wp_targeted_link_rel
$result = wp_targeted_link_rel($text);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...