Core Function
View Source on Trac ↗ wp_sprintf()
wp_sprintf( mixed $pattern, mixed $args ) WordPress' implementation of PHP sprintf() with filters.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $pattern string | The string which formatted args are inserted. Required |
| mixed | ...$args Arguments to be formatted into the $pattern string. Required |
Return Value
(string)
The formatted string.
Function Information
Since Version
2.5.0
Source File
wp-includes/formatting.php
Advertisement