wp_sprintf

FUNCTION wp-includes\formatting.php (ligne 5241) github
WordPress' implementation of PHP sprintf() with filters.

Paramètres

Entrée :
$pattern, ...$args
Sortie :
@param string $pattern The string which formatted args are inserted.
@param mixed  ...$args Arguments to be formatted into the $pattern string.
@return string The formatted string.

Utilisation

// Utilisation de la fonction wp_sprintf
$result = wp_sprintf($pattern, ...$args);

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

Actualités

Chargement des actualités...