format_for_editor

FUNCTION wp-includes\formatting.php (ligne 4108) github
Filters text before named entities are converted into numbered entities. A non-null string must be returned for the filter to be evaluated.

Paramètres

Entrée :
$text, $default_editor = null
Sortie :
@param string|null $converted_text The text to be converted. Default null.
@param string      $text           The text prior to entity conversion.
@param string $text           The text to be formatted.
@param string $default_editor The default editor for the current user.
@return string The formatted text after filter is applied.

Utilisation

// Utilisation de la fonction format_for_editor
$result = format_for_editor($text, $default_editor = null);

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

Actualités

Chargement des actualités...